Skip to content

Commit

Permalink
Fix error in example in 03-typescript.md (#9001)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoBurgard committed Jul 19, 2023
1 parent 5d66f96 commit 3dccf71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions documentation/docs/05-misc/03-typescript.md
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 3dccf71

Please sign in to comment.