Installing adbkit does not install it's dependencies' type definitions.
> tsc
node_modules/@devicefarmer/adbkit/dist/src/ExtendedPublicKey.d.ts:1:21 - error TS7016: Could not find a declaration file for module 'node-forge'. '/home/j/dev/poke/node_modules/node-forge/lib/index.js' implicitly has an 'any' type.
Try `npm i --save-dev @types/node-forge` if it exists or add a new declaration (.d.ts) file containing `declare module 'node-forge';`
1 import { pki } from 'node-forge';
~~~~~~~~~~~~
node_modules/@devicefarmer/adbkit/dist/src/SocketOptions.d.ts:2:22 - error TS7016: Could not find a declaration file for module 'bluebird'. '/home/j/dev/poke/node_modules/bluebird/js/release/bluebird.js' implicitly has an 'any' type.
Try `npm i --save-dev @types/bluebird` if it exists or add a new declaration (.d.ts) file containing `declare module 'bluebird';`
2 import Bluebird from 'bluebird';
...
A fresh project using adbkit is missing the dependencies from its package-lock.json:
ISSUE:
Installing
adbkit
does not install it's dependencies' type definitions.A fresh project using
adbkit
is missing the dependencies from itspackage-lock.json
:I believe that the
@type
definitions should be included in the above.Other project have them:
PROPOSED FIX:
Is the solution to make them production dependencies instead of dev dependencies?
WORKAROUND:
include the
@type
dependencies in the project usingadbkit
... even though it may not use the other libraries...STEPS TO REPRODUCE:
npm install @devicefarmer/adbkit
import Adb from '@devicefarmer/adbkit';
npm run build
(ortsc
)