Skip to content

Commit

Permalink
Merge pull request microsoft#11448 from Microsoft/fix_array_condition
Browse files Browse the repository at this point in the history
Fix array conditional
  • Loading branch information
Andy authored Oct 7, 2016
2 parents e0e8cf0 + 13a8dc1 commit d34916a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/program.ts
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ namespace ts {
// load type declarations specified via 'types' argument or implicitly from types/ and node_modules/@types folders
const typeReferences: string[] = getAutomaticTypeDirectiveNames(options, host);

if (typeReferences) {
if (typeReferences.length) {
// This containingFilename needs to match with the one used in managed-side
const containingFilename = combinePaths(host.getCurrentDirectory(), "__inferred type names__.ts");
const resolutions = resolveTypeReferenceDirectiveNamesWorker(typeReferences, containingFilename);
Expand Down

0 comments on commit d34916a

Please sign in to comment.