Skip to content

Commit 223db7f

Browse files
authored
docs: fix TypeScript event name typos (#8844)
1 parent 7bab2d4 commit 223db7f

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
@@ -102,12 +102,12 @@ Events can be typed with `createEventDispatcher`:
102102
}>();
103103
104104
function handleClick() {
105-
dispatch('even');
105+
dispatch('event');
106106
dispatch('click', 'hello');
107107
}
108108
109109
function handleType() {
110-
dispatch('even');
110+
dispatch('event');
111111
dispatch('type', Math.random() > 0.5 ? 'world' : null);
112112
}
113113
</script>

0 commit comments

Comments
 (0)