Code
// @module: commonjs// @moduleResolution: node// @allowJs: true// @noEmit: true// @traceResolution: true// @filename: c:/root/tsconfig.json{"compileOnSave": true,"compilerOptions": {"module": "commonjs","moduleResolution": "node","outDir": "bin"},"exclude": ["bah"]}// @filename: c:/root/node_modules/shortid/index.jsmodule.exports={fromNodeModules: 'foo'};// @filename: c:/root/bah/index.d.tsdeclare module "shortid"{exportvarfromTypings: number;}// @filename: c:/root/index.ts// no triple-slash reference means that index.d.ts is not usedimport*asfoofrom"shortid";foo.fromTypings// ignoredfoo.fromNodeModules// foundExpected behavior:
Error at foo.fromTypings
Actual behavior:
Error at foo.fromNodeModules
Code
Expected behavior:
Error at
foo.fromTypingsActual behavior:
Error at
foo.fromNodeModules