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() { function handleClick() {
dispatch('even'); dispatch('event');
dispatch('click', 'hello'); dispatch('click', 'hello');
} }
function handleType() { function handleType() {
dispatch('even'); dispatch('event');
dispatch('type', Math.random() > 0.5 ? 'world' : null); dispatch('type', Math.random() > 0.5 ? 'world' : null);
} }
</script> </script>

Loading…
Cancel
Save