Since #23 TypeScript declarations are no longer found.
Could not find a declaration file for module 'penpal'. '[...]/node_modules/penpal/lib/index.js' implicitly has an 'any' type.
Try `npm install @types/penpal` if it exists or add a new declaration (.d.ts) file containing `declare module 'penpal';` ts(7016)
When installed from npm only the ./dist and ./lib folders and downloaded, ./lib contains index.d.ts which is copied from ./types during the build script. The problem is that package.json sets types to ./types/index.d.ts which doesn't exist when installed from npm.
I would have submitted a PR but am unsure what to do since either ./types exists (when installed from npm) or ./lib exists (when cloning the git repository) so in one of the cases the package.json would be incorrect.
Simple fix would be to add ./types to the npm download.
Since #23 TypeScript declarations are no longer found.
When installed from npm only the
./dist
and./lib
folders and downloaded,./lib
containsindex.d.ts
which is copied from./types
during the build script. The problem is thatpackage.json
setstypes
to./types/index.d.ts
which doesn't exist when installed from npm.I would have submitted a PR but am unsure what to do since either
./types
exists (when installed from npm) or./lib
exists (when cloning the git repository) so in one of the cases thepackage.json
would be incorrect.Simple fix would be to add
./types
to the npm download.@mike-north