diff --git a/documentation/docs/05-misc/03-typescript.md b/documentation/docs/05-misc/03-typescript.md index 5d164324a308..d5772fa15708 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() {