Skip to content

Commit e6ced33

Browse files
author
jbondc
committed
Make index types optional in ResolvedType
1 parent e39a2e7 commit e6ced33

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/compiler/types.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1588,7 +1588,7 @@ module ts {
15881588
/* @internal */
15891589
ContainsUndefinedOrNull = 0x00040000, // Type is or contains Undefined or Null type
15901590
/* @internal */
1591-
ContainsObjectLiteral = 0x00080000, // Type is or contains object literal type
1591+
ContainsObjectLiteral = 0x00080000, // Type is or contains object literal type
15921592
ESSymbol = 0x00100000, // Type of symbol primitive introduced in ES6
15931593

15941594
/* @internal */
@@ -1674,8 +1674,8 @@ module ts {
16741674
properties: Symbol[]; // Properties
16751675
callSignatures: Signature[]; // Call signatures of type
16761676
constructSignatures: Signature[]; // Construct signatures of type
1677-
stringIndexType: Type; // String index type
1678-
numberIndexType: Type; // Numeric index type
1677+
stringIndexType?: Type; // String index type
1678+
numberIndexType?: Type; // Numeric index type
16791679
}
16801680

16811681
// Just a place to cache element types of iterables and iterators

0 commit comments

Comments
 (0)