From 3dccf711f8d4a7a65e602494a414e38ad87d92b8 Mon Sep 17 00:00:00 2001 From: Jo Burgard Date: Wed, 19 Jul 2023 22:37:38 +0200 Subject: [PATCH] Fix error in example in 03-typescript.md (#9001) --- 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 5d164324a..d5772fa15 100644 --- a/documentation/docs/05-misc/03-typescript.md +++ b/documentation/docs/05-misc/03-typescript.md @@ -97,8 +97,8 @@ Events can be typed with `createEventDispatcher`: const dispatch = createEventDispatcher<{ event: null; // does not accept a payload - type: string; // has a required string payload - click: string | null; // has an optional string payload + click: string; // has a required string payload + type: string | null; // has an optional string payload }>(); function handleClick() {