Skip to content
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

Improved wrapped type definitions (support for Date and functions) #47

Merged

Conversation

bluenote10
Copy link
Contributor

The Wrapped<T> type definition is still missing a few pieces to fully work in general. I first noticed this when working with Date, which always required manual casts because of the Symbol.toPrimitive symbol. I had to ask for help in order to come up with a solution. To make other well-known symbols work, we could either add more explicitly forwarded definitions, or wait until the upstream TS issue gets a release (had recent activity, so may be available soon).

I also may have to refine the forwarding of AddCallable, but if you don't mind I'd first experiment with this change for a while and make necessary improvements step-by-step.

@ryansolid
Copy link
Member

Thanks for looking into this. We may have clean type defs one day.

@ryansolid ryansolid merged commit 41984b4 into solidjs:master Jul 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants