From 223db7f19dd509253a1823fae17400d3e536ee74 Mon Sep 17 00:00:00 2001 From: Theodore Brown Date: Sun, 25 Jun 2023 16:06:06 +0200 Subject: [PATCH] docs: fix TypeScript event name typos (#8844) --- documentation/docs/05-misc/03-typescript.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }