Typescript: ATA inclusion in JS projects should include bundled .d.ts files from NPM packages

Created on 4 Jan 2018  路  2Comments  路  Source: microsoft/TypeScript

https://developercommunity.visualstudio.com/content/problem/169330/vs-2017-javascript-intellisense-does-not-work.html

When we construct the program in a JS context we include stuff from node_modules/@types, but don't scan other node_modules to look for packages that have bundled .d.ts files, e.g. axios. This results in UMD globals being missing from the completion list.

Bug

Most helpful comment

Any news about the fix? Without the "reference mode" we are developing in blindly mode.

All 2 comments

As workaround I copied over the types from the axios directoy into node_modules/@types/axios and was surprised that this didn't light up intelisense. Why is that? I also tried to copy the type definitons to the ata cache (AppData\Local\Microsoft\TypeScript\2.5node_modules\@types) which also didn't help. Any other workaround until 2.8 is released?

Any news about the fix? Without the "reference mode" we are developing in blindly mode.

Was this page helpful?
0 / 5 - 0 ratings