-
-
Notifications
You must be signed in to change notification settings - Fork 924
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeScript: Event properties can be omitted but not set to undefined #1640
Comments
In general Solid's types aren't compatible with In the specific example provided however, setting
|
Thanks for the note on I see all of the properties are described in the jsx.d.ts file using I wonder if it would be acceptable to just change that type to:
|
The types are in dom-expressions. |
I can’t find anywhere that brings that codebase into the solid package. How does that work? |
It's because dom-expressions is sort of a framework builder. In order to get a treeshakeable output we need to basically bundle it into Solid's output. |
Describe the bug
The types for events are optional, but require a valid value if set.
Optional properties should allow
undefined
in case we want to programmatically set the property, such as in the example below, as the effect is most likely the same.Edit: adjusted example.
The text was updated successfully, but these errors were encountered: