Closed Benny- closed 5 years ago
It seems the proper lines are already present in package.json! I'm not sure why my typescript program does not pick up the types.
I solved my issue. I had to add "moduleResolution": "node",
to the compilerOptions object in tsconfig.json.
At the moment type information is lost when the project is transpiled to JS.
To get the type information back for library users follow these instructions: including-declarations-in-your-npm-package