How to make your own npm package with Typescript .d.ts extension

Photo by Roman Synkevych on Unsplash

As you handle more than one project, you may encounter situations where you have to code trivial functions repeatedly across the projects.

As a sincere DRYer (Don’t Repeat Yourself), in order to avoid it, I package the frequently-used-functions using the npm(also known as Node Package Manager). Then, all I have to do is to install the package and use it…