We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3d6c1c0 commit 15b66b5Copy full SHA for 15b66b5
packages/svelte/types/index.d.ts
@@ -381,7 +381,7 @@ declare module 'svelte' {
381
* The event dispatcher can be typed to narrow the allowed event names and the type of the `detail` argument:
382
* ```ts
383
* const dispatch = createEventDispatcher<{
384
- * loaded: never; // does not take a detail argument
+ * loaded: null; // does not take a detail argument
385
* change: string; // takes a detail argument of type string, which is required
386
* optional: number | null; // takes an optional detail argument of type number
387
* }>();
0 commit comments