diff --git a/documentation/docs/05-misc/03-typescript.md b/documentation/docs/05-misc/03-typescript.md index 70905f6800..4adc4d3480 100644 --- a/documentation/docs/05-misc/03-typescript.md +++ b/documentation/docs/05-misc/03-typescript.md @@ -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); }