mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 21:36:50 -05:00
@@ -16708,6 +16708,8 @@ namespace ts {
|
||||
return restType;
|
||||
}
|
||||
}
|
||||
return isNumericLiteralName(name) && getIndexTypeOfContextualType(type, IndexKind.Number) ||
|
||||
getIndexTypeOfContextualType(type, IndexKind.String);
|
||||
}
|
||||
return undefined;
|
||||
}, /*noReductions*/ true);
|
||||
|
||||
Reference in New Issue
Block a user