You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 23, 2023. It is now read-only.
Typescript cannot find declaration file (.d.ts) when used via npm
Issue description
When one tries to import es6-tween in TypeScript, they get:
ERROR in [at-loader] ./lib/graphics.ts:7:24
TS7016: Could not find a declaration file for module 'es6-tween'. '[...]/node_modules/es6-tween/full/Tween.js' implicitly has an 'any' type.
Try `npm install @types/es6-tween` if it exists or add a new declaration (.d.ts) file containing `declare module 'es6-tween';`
Issue
Issue name
Typescript cannot find declaration file (.d.ts) when used via npm
Issue description
When one tries to import es6-tween in TypeScript, they get:
Related
This issue is related to
What you excepted?
To fix, you simply need to add a
"types"
field in package.json. See http://www.typescriptlang.org/docs/handbook/declaration-files/publishing.html.I'll send a pull request.
The text was updated successfully, but these errors were encountered: