docs: fix TypeScript event name typos (#8844)

pull/8845/head
Theodore Brown 2 years ago committed by GitHub
parent 7bab2d4033
commit 223db7f19d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -102,12 +102,12 @@ Events can be typed with `createEventDispatcher`:
}>();
function handleClick() {
dispatch('even');
dispatch('event');
dispatch('click', 'hello');
}
function handleType() {
dispatch('even');
dispatch('event');
dispatch('type', Math.random() > 0.5 ? 'world' : null);
}
</script>

Loading…
Cancel
Save