Fix copy-paste error

This commit is contained in:
Andrew Casey
2017-08-17 13:17:51 -07:00
parent 8cbf42cff5
commit d7ace2086f

View File

@@ -1,6 +1,5 @@
/** @internal */
namespace ts {
/** @internal */
export function createGetSymbolWalker(
getRestTypeOfSignature: (sig: Signature) => Type,
getReturnTypeOfSignature: (sig: Signature) => Type,
@@ -114,7 +113,7 @@ namespace ts {
function visitObjectType(type: ObjectType): void {
const stringIndexType = getIndexTypeOfStructuredType(type, IndexKind.String);
visitType(stringIndexType);
const numberIndexType = getIndexTypeOfStructuredType(type, IndexKind.String);
const numberIndexType = getIndexTypeOfStructuredType(type, IndexKind.Number);
visitType(numberIndexType);
// The two checks above *should* have already resolved the type (if needed), so this should be cached