We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8cbf42c commit d7ace20Copy full SHA for d7ace20
src/compiler/symbolWalker.ts
@@ -1,6 +1,5 @@
1
/** @internal */
2
namespace ts {
3
- /** @internal */
4
export function createGetSymbolWalker(
5
getRestTypeOfSignature: (sig: Signature) => Type,
6
getReturnTypeOfSignature: (sig: Signature) => Type,
@@ -114,7 +113,7 @@ namespace ts {
114
113
function visitObjectType(type: ObjectType): void {
115
const stringIndexType = getIndexTypeOfStructuredType(type, IndexKind.String);
116
visitType(stringIndexType);
117
- const numberIndexType = getIndexTypeOfStructuredType(type, IndexKind.String);
+ const numberIndexType = getIndexTypeOfStructuredType(type, IndexKind.Number);
118
visitType(numberIndexType);
119
120
// The two checks above *should* have already resolved the type (if needed), so this should be cached
0 commit comments