We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49a6391 commit 13a8dc1Copy full SHA for 13a8dc1
src/compiler/program.ts
@@ -358,7 +358,7 @@ namespace ts {
358
// load type declarations specified via 'types' argument or implicitly from types/ and node_modules/@types folders
359
const typeReferences: string[] = getAutomaticTypeDirectiveNames(options, host);
360
361
- if (typeReferences) {
+ if (typeReferences.length) {
362
// This containingFilename needs to match with the one used in managed-side
363
const containingFilename = combinePaths(host.getCurrentDirectory(), "__inferred type names__.ts");
364
const resolutions = resolveTypeReferenceDirectiveNamesWorker(typeReferences, containingFilename);
0 commit comments