-
Notifications
You must be signed in to change notification settings - Fork 415
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
TypedStimulusController - some Typescript love :) #724
Comments
I took a look at this and made some improvements (support default values) but was unable to make it work as well for targets and outlets |
TypeScript has already been removed from Turbo and I would not be surprised if it is removed from Stimulus soon |
Removed as in...? Stimulus itself is written in Typescript. |
Yes, but it will probably switch to JavaScript soon, just like Turbo did a few weeks ago |
Got it. Even if the implementation switches to Javascript (for whatever reason), the type definitions would be published. Anyway what I proposed is a nicety for the end typescript users, and can definitely live outside Stimulus as a separate package. |
https://world.hey.com/dhh/turbo-8-is-dropping-typescript-70165c01 Ok, not part of Stimulus 😄 |
Hi
Have been playing with Stimulus, and came up with this sample that can automatically type the values, targets, outlets...
Would there be any interest in including a full implementation of this as part of Stimulus or would it be more suited as a separate package?
This will let Typescript users avoid having to manually override the types
See similar issue here: #723
The text was updated successfully, but these errors were encountered: