mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-30 01:04:49 -05:00
Mapped type { [P in any]: T } should yield { [x: string]: T }
This commit is contained in:
@@ -5821,7 +5821,7 @@ namespace ts {
|
||||
prop.syntheticLiteralTypeOrigin = t as StringLiteralType;
|
||||
members.set(propName, prop);
|
||||
}
|
||||
else if (t.flags & TypeFlags.String) {
|
||||
else if (t.flags & (TypeFlags.Any | TypeFlags.String)) {
|
||||
stringIndexInfo = createIndexInfo(propType, templateReadonly);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user