Skip to content

Commit 8201d7a

Browse files
docs: Switch typing of Action<Parameter> from null to undefined in 12-use.md (#14798)
* Update 12-use.md - * Remove unecessary line in Action typing example * drive-by formatting fix --------- Co-authored-by: Rich Harris <[email protected]>
1 parent fb67bad commit 8201d7a

File tree

1 file changed

+3
-4
lines changed
  • documentation/docs/03-template-syntax

1 file changed

+3
-4
lines changed

documentation/docs/03-template-syntax/12-use.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,16 @@ The `Action` interface receives three optional type arguments — a node type (w
5050
```svelte
5151
<!--- file: App.svelte --->
5252
<script>
53-
import { on } from 'svelte/events';
54-
5553
/**
5654
* @type {import('svelte/action').Action<
5755
* HTMLDivElement,
58-
* null,
56+
* undefined,
5957
* {
6058
* onswiperight: (e: CustomEvent) => void;
6159
* onswipeleft: (e: CustomEvent) => void;
6260
* // ...
63-
* }>}
61+
* }
62+
* >}
6463
*/
6564
function gestures(node) {
6665
$effect(() => {

0 commit comments

Comments
 (0)