I'm using the ssh2-sftp-client
NPM package and types for it are provided by @types/ssh2-sftp-client
. I've both of them installed but no types are being picked up. This is what my package.json
look like:
{
"name": "name",
"version": "0.1.0",
"description": "description",
"devDependencies": {
"@types/ssh2": "^1.11.7",
"@types/ssh2-sftp-client": "^9.0.0"
},
"dependencies": {
"ssh2-sftp-client": "^9.0.4"
}
}
There's this related answer, however it seems to address types you declare yourself. Do I need to do further setup after installing any @typings
package?
Edit... I forgot to add tsconfig.json
file:
"compilerOptions": {
"lib": ["ES2022"],
"module": "commonjs",
"target": "ES2022",
"declaration": true,
"strict": true,
"noImplicitAny": true,
"strictNullChecks": true,
"noImplicitThis": true,
"alwaysStrict": true,
"noUnusedLocals": false,
"noUnusedParameters": false,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": false,
"inlineSourceMap": true,
"inlineSources": true,
"experimentalDecorators": true,
"skipLibCheck": true,
"strictPropertyInitialization": false,
"typeRoots": [
"./node_modules/@types"
]
},
"exclude": [
"node_modules/**/*",
"cdk.out"
]
}