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.
1 parent 5d66f96 commit 3dccf71Copy full SHA for 3dccf71
documentation/docs/05-misc/03-typescript.md
@@ -97,8 +97,8 @@ Events can be typed with `createEventDispatcher`:
97
98
const dispatch = createEventDispatcher<{
99
event: null; // does not accept a payload
100
- type: string; // has a required string payload
101
- click: string | null; // has an optional string payload
+ click: string; // has a required string payload
+ type: string | null; // has an optional string payload
102
}>();
103
104
function handleClick() {
0 commit comments