You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if a key in an event dispatcher type is required, it can be dispatched without a value, causing the CustomEvent.detail to be null at runtime when typescript does not say it's nullable
Describe the bug
if a key in an event dispatcher type is required, it can be dispatched without a value, causing the
CustomEvent.detail
to benull
at runtime when typescript does not say it's nullableReproduction
a.svelte
b.svelte
Expected behaviour
the function created by
createEventDispatcher
should require thedetail
argument when theEventKey
type is required.the updated function signature could look something like this:
playground
System Info
Which package is the issue about?
svelte-check
Additional Information, eg. Screenshots
No response
The text was updated successfully, but these errors were encountered: