From 34f7b95f5ddba6be594bc9299888af0dd4f234be Mon Sep 17 00:00:00 2001 From: Simon H <5968653+dummdidumm@users.noreply.github.com> Date: Mon, 11 Apr 2022 14:24:46 +0200 Subject: [PATCH] docs --- src/runtime/action/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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