naja-js/naja

Missing TS declarations

Closed this issue · 2 comments

Bug Report

It seems that since v2.1.0 all .d.ts files are missing from the repository.

Types

https://github.com/jiripudil/Naja/blob/e33269152ea070c9207cfc512c4b8a37c41e602a/package.json#L16

TSC output

error TS7016: Could not find a declaration file for module 'naja'. '~/node_modules/naja/dist/Naja.js' implicitly has an 'any' type.
  Try `npm i --save-dev @types/naja` if it exists or add a new declaration (.d.ts) file containing `declare module 'naja';`

Compare

2.0.1...2.1.0

Oh yes, nice catch, thanks! That should be dist/, not src/

Fixed in 2.1.2