Closed 0x009922 closed 3 years ago
I added the types field into package.json. Without it, the index.d.ts file goes unnoticed.
types
package.json
index.d.ts
See this on official TypeScript docs: Including declarations in your npm package.
Are you sure? In my project, the types are being found without this change.
Hmm, yes, and it works for me now. Nice.
I added the
types
field intopackage.json
. Without it, theindex.d.ts
file goes unnoticed.See this on official TypeScript docs: Including declarations in your npm package.