When using this package in a TypeScript environment which uses moduleResolution: 'nodenext', TypeScript won't find the typings unless the exports map entries include a types key. (E.g. it ignores the one at root.)
Another remedy is to include typings right next to the source. I believe TypeScript will find them this way as well.
Tested locally by adding this entry made TS happy. :)
When using this package in a TypeScript environment which uses
moduleResolution: 'nodenext'
, TypeScript won't find the typings unless theexports
map entries include atypes
key. (E.g. it ignores the one at root.)Another remedy is to include typings right next to the source. I believe TypeScript will find them this way as well.
Tested locally by adding this entry made TS happy. :)