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
Looks alright to me. Of course, if you want to preserve JavaScript, then you'd have to manually maintain the types separately.
However, since you are using Vite in library mode, then the suggested PR does exactly that, with an added bonus of having proper types in the source. Honestly, I used to be on the JS+JSDoc side until Vite come out. I hated writing Babel-related build configs, and hated more Browserify!
In my opinion, TypeScript is the way to go for sources. I understand those on the other side, however the tooling seem to not be in their favor; generating a .d.ts file from JSDoc is not as easy as generating .js+.d.ts from a single .ts file.
A lot of projects are using TypeScript. Adding types would be nices.
The text was updated successfully, but these errors were encountered: