diff --git a/src/runtime/action/index.ts b/src/runtime/action/index.ts index b1c344b6e5..cc0047603a 100644 --- a/src/runtime/action/index.ts +++ b/src/runtime/action/index.ts @@ -36,7 +36,9 @@ export type ActionReturn = void extends Parameter * // ... * } * ``` - * You can return an object with methods `update` and `destroy` from the function. + * If your action doesn't accept a parameter, type if as `Action`. + * + * You can return an object with methods `update` (if the action accepts a parameter) and `destroy` from the function. * See interface `ActionReturn` for more details. * * Docs: https://svelte.dev/docs#template-syntax-element-directives-use-action