From eb1260eca9467559aa140723cf6b66e5ac524e57 Mon Sep 17 00:00:00 2001 From: "S. Elliott Johnson" Date: Mon, 8 May 2023 22:30:56 -0600 Subject: [PATCH] Manual cleanup of src/runtime/action/index.js --- src/runtime/action/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/runtime/action/index.js b/src/runtime/action/index.js index b05099a314..85b98ccc90 100644 --- a/src/runtime/action/index.js +++ b/src/runtime/action/index.js @@ -1,4 +1,5 @@ export {}; + // Implementation notes: // - undefined extends X instead of X extends undefined makes this work better with both strict and nonstrict mode // - [X] extends [never] is needed, X extends never would reduce the whole resulting type to never and not to one of the condition outcomes @@ -31,7 +32,7 @@ export {}; * * Docs: https://svelte.dev/docs#template-syntax-element-directives-use-action * @typedef {Object} ActionReturn - * @property {[Parameter]extends[never]?never:(parameter:Parameter)=>void} [update] + * @property {[Parameter] extends [never] ? never : (parameter: Parameter) => void} [update] * @property {()=>void} [destroy] * @property {Attributes} [$$_attributes] * ### DO NOT USE THIS