Skip to content

Commit 3dccf71

Browse files
authored
Fix error in example in 03-typescript.md (#9001)
1 parent 5d66f96 commit 3dccf71

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

documentation/docs/05-misc/03-typescript.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ Events can be typed with `createEventDispatcher`:
9797
9898
const dispatch = createEventDispatcher<{
9999
event: null; // does not accept a payload
100-
type: string; // has a required string payload
101-
click: string | null; // has an optional string payload
100+
click: string; // has a required string payload
101+
type: string | null; // has an optional string payload
102102
}>();
103103
104104
function handleClick() {

0 commit comments

Comments
 (0)