DEV Community

Discussion on: Using TypeScript without TypeScript 😎

Collapse
 
fredericbonnet profile image
Frédéric Bonnet

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.

Collapse
 
puruvj profile image
PuruVJ

Yeah. VSCode is our savior