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
Consequently, the same problem occurs with Infinity and undefined as the default values for a prop, as those are global variables.
It is also spotted with components and other Svelte objects (e.g. transitions) as default values.
Imagine you have a JS file which exports some enum:
You want your prop to be one of the values from that enum, so you write the following in your Svelte component:
The generated typings lack the information on the default value of this prop:
The text was updated successfully, but these errors were encountered: