Skip to content

Commit d7ace20

Browse files
committed
Fix copy-paste error
1 parent 8cbf42c commit d7ace20

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/compiler/symbolWalker.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/** @internal */
22
namespace ts {
3-
/** @internal */
43
export function createGetSymbolWalker(
54
getRestTypeOfSignature: (sig: Signature) => Type,
65
getReturnTypeOfSignature: (sig: Signature) => Type,
@@ -114,7 +113,7 @@ namespace ts {
114113
function visitObjectType(type: ObjectType): void {
115114
const stringIndexType = getIndexTypeOfStructuredType(type, IndexKind.String);
116115
visitType(stringIndexType);
117-
const numberIndexType = getIndexTypeOfStructuredType(type, IndexKind.String);
116+
const numberIndexType = getIndexTypeOfStructuredType(type, IndexKind.Number);
118117
visitType(numberIndexType);
119118

120119
// The two checks above *should* have already resolved the type (if needed), so this should be cached

0 commit comments

Comments
 (0)