10000
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.
1 parent 9031497 commit d347d87Copy full SHA for d347d87
src/compiler/checker.ts
@@ -12308,7 +12308,7 @@ namespace ts {
12308
let objectType;
12309
return !!(type.flags & TypeFlags.IndexedAccess && getObjectFlags(objectType = (type as IndexedAccessType).objectType) & ObjectFlags.Mapped &&
12310
!isGenericMappedType(objectType) && isGenericIndexType((type as IndexedAccessType).indexType) &&
12311
- !(objectType as MappedType).declaration.questionToken && !(objectType as MappedType).declaration.nameType);
+ !(getMappedTypeModifiers(objectType as MappedType) & MappedTypeModifiers.ExcludeOptional) && !(objectType as MappedType).declaration.nameType);
12312
}
12313
12314
/**
0 commit comments