Skip to content

Typescript and createEventDispatcher #3991

Answered by mustofa-id
b2m9 asked this question in Q&A
Discussion options

You must be logged in to vote

Sound more Svelte than Kit.
You can type event name and detail like so: createEventDispatcher<{eventName: { id: string, type: striing }}>()

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@b2m9
Comment options

@mustofa-id
Comment options

Answer selected by b2m9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants