How to add a typescript definition file to a npm package?
There is a page in the TypeScript Handbook on adding typings to an NPM Package. I’ll copy and paste here: Typings for NPM Packages The TypeScript compiler resolves Node module names by following the Node.js module resolution algorithm. TypeScript can also load typings that are bundled with npm packages. The compiler will try to discover … Read more