Is your feature request related to a problem? Please describe
The TypeScript types being not-quite-perfectly-in-sync with the JavaScript implementation is starting to be a little frustrating.
Could we just go all-in and convert the source to TypeScript? I think the strictness benefits would be worth it.
Downstream, there'd still be the esm/plain-JS modules, of course, for plain-JS consumers.
Describe the solution you'd like
- Convert all .js to .ts
- Inline the types
- Set up the build pipeline(s) to do the Right Things regarding packaging
- Fix All The Bugs! 😄
Additional context
If the project leadership is amenable to this, I'm willing to do at least initial legwork to get things going. I'd rather not, though, if such a PR would never pass.
Is your feature request related to a problem? Please describe
The TypeScript types being not-quite-perfectly-in-sync with the JavaScript implementation is starting to be a little frustrating.
Could we just go all-in and convert the source to TypeScript? I think the strictness benefits would be worth it.
Downstream, there'd still be the esm/plain-JS modules, of course, for plain-JS consumers.
Describe the solution you'd like
Additional context
If the project leadership is amenable to this, I'm willing to do at least initial legwork to get things going. I'd rather not, though, if such a PR would never pass.