We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
nameType
1 parent 67c8a8f commit c66fd92Copy full SHA for c66fd92
src/compiler/checker.ts
@@ -13665,7 +13665,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
13665
const include = keyofStringsOnly ? TypeFlags.StringLiteral : TypeFlags.StringOrNumberLiteralOrUnique;
13666
if (isMappedTypeWithKeyofConstraintDeclaration(type)) {
13667
// We have a { [P in keyof T]: X }
13668
- if (nameType && isTupleType(modifiersType)) {
+ if (isTupleType(modifiersType)) {
13669
forEachType(getUnionType(getElementTypes(modifiersType).map((_, i) => getStringLiteralType("" + i))), addMemberForKeyType);
13670
}
13671
else if (isArrayType(modifiersType)) {
0 commit comments