We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
svelte
1 parent 777de78 commit aa7c9f2Copy full SHA for aa7c9f2
apps/svelte.dev/content/docs/svelte/98-reference/20-svelte.md
@@ -239,7 +239,7 @@ property and can contain any type of data.
239
The event dispatcher can be typed to narrow the allowed event names and the type of the `detail` argument:
240
```ts
241
const dispatch = createEventDispatcher<{
242
- loaded: never; // does not take a detail argument
+ loaded: null; // does not take a detail argument
243
change: string; // takes a detail argument of type string, which is required
244
optional: number | null; // takes an optional detail argument of type number
245
}>();
0 commit comments