Fix error in example in 03-typescript.md (#9001)

pull/9008/head
Jo Burgard 12 months ago committed by GitHub
parent 5d66f96d01
commit 3dccf711f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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() {

Loading…
Cancel
Save