The new selfsigned types reference node-forge, but since @types/node-forge isn't listed as a dependency, users will hit the following error:
node_modules/selfsigned/index.d.ts:1:21 - error TS7016: Could not find a declaration file for module 'node-forge'. '/home/aomarks/work/wireit/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'
~~~~~~~~~~~~
The new
selfsigned
types referencenode-forge
, but since@types/node-forge
isn't listed as a dependency, users will hit the following error:Adding the dependency solves that problem.
Thank you!