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
When using HTMLAttributes<HTMLElement> as the props type for a component, where children is optional, if you don't provide children explicitly, by putting content within the components children or setting children={undefined} you get a type error.
It seems to occur specifically when Partial<> is used.
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
When using
HTMLAttributes<HTMLElement>
as the props type for a component, wherechildren
is optional, if you don't provide children explicitly, by putting content within the components children or settingchildren={undefined}
you get a type error.It seems to occur specifically when
Partial<>
is used.Reproduction
https://github.com/huntabyte/attachments-type-issue
Go to
lib/another.svelte
to see the behavior.Logs
System Info
Severity
blocking an upgrade
The text was updated successfully, but these errors were encountered: