I use highland.js and installed it with a type definition:
jq .dependencies package.json | grep highland "@types/highland": "https://registry.npmjs.org/@types/highland/-/highland-1.14.30.tgz", "highland": "^2.9.0",
I am using PhpStorm (which uses the WebStorm component for TypeScript).
When I click for:
Highland.Stream<any>
PhpStorm complains about the stream:
Corresponding file not included in tsconfig.json

However, the transition to the declaration works, and it goes to node_modules/@types/highland/index.d.ts:367 :
interface Stream<R> extends NodeJS.EventEmitter { ... }
I can compile code with tsc without errors, and it works as expected. What is a PhpStorm / WebStorm problem?
$ jq . tsconfig.json { "compilerOptions": { "module": "commonjs", "lib": [ "es2016", "dom" ], "target": "es6", "noImplicitAny": true, "sourceMap": true, "outDir": "dist", "strictNullChecks": true, "skipLibCheck": true, "types": [ "node", "mocha", "chai", "sinon" ] }, "exclude": [ "node_modules", "src/typings-custom/main.d.ts" ] }
I tried adding highland to types no avail, and I have no idea what the error says.