Include type definitions in the npm package
BigForNothing opened this issue · 3 comments
BigForNothing commented
Can you please include the type definitions inside the type definition files?
http://www.typescriptlang.org/docs/handbook/declaration-files/publishing.html
xpepermint commented
Types definition inside package.json
should be enough. Make sure you are using the latest typescript
version.
{
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
...
}
BigForNothing commented
Sorry, you are correct. I was looking at the package as installed, which is still 3.1.0 (and doesn't include it). Looks like 3.2.0 will have it.
xpepermint commented
Good. I'll close the issue then.