-
Notifications
You must be signed in to change notification settings - Fork 79
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
Add types for VDOM events. #65
Comments
I haven't been able to figure out the right syntax for this - hopefully a solution can be used as a reference to solve #36 more broadly, which I'd be happy to help with :-) |
In case it's of any help, I'm maintaining a typescript version of ultradom (here: https://github.com/pickle-ts/pickle/blob/master/src/dom.ts ). The types in question:
By separating out lifecycle into an interface, I'm able to reuse this interface for a function that composes lifecycle events: Maybe some interesting background here. I wrote an HTML DOM generator in C# a while ago ( https://github.com/hyperlinq/hyperlinq ) . C# generics are very expressive, so I was even able to statically type check that a particular attribute was legal for a particular element. I might investigate whether something similar is possible with typescript/ultradom in the future. I'm just like everyone else rather bogged down in work right now! |
Superfine 7 dropped lifecycle events. |
We have 3 VDOM events at the moment:
But they are not typed in the type declarations.
The text was updated successfully, but these errors were encountered: