JavaScript
How I Refactored a JavaScript Library to TypeScript
A Guide to setting up an npm library with TypeScript, Jest, Prettier, and Eslint
Published in
4 min readMar 11, 2021
In this story, I will refactor one of my libraries (nric-validator). The scenario is that the code is written in JavaScript + Ava (unit test), and the structure is not good. So, I want to re-structure…