Software engineer @avec_alan (opinions mine) | ex @Shopify | Tool Maker
| #SoftwareCraftsman
| C & Test lover
| Web Metamodernist
| Author of PicoTest, Colibri and Seaborg
I've used this approach on my latest project (an ASCII art to SVG converter) and it works great! Write code in plain JS with TSDoc annotations, serve the plain JS files as ES modules with Snowpack, distribute the public interface as a .d.ts file in the NPM package. Overall it gives a great developer experience with lightning-fast live reload. My previous project used TypeScript, and while it works fine, this new approach is much smoother.
I've used this approach on my latest project (an ASCII art to SVG converter) and it works great! Write code in plain JS with TSDoc annotations, serve the plain JS files as ES modules with Snowpack, distribute the public interface as a .d.ts file in the NPM package. Overall it gives a great developer experience with lightning-fast live reload. My previous project used TypeScript, and while it works fine, this new approach is much smoother.
Yeah. VSCode is our savior