mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-10 15:25:54 -06:00
Mapped type { [P in any]: T } should yield { [x: string]: T }
This commit is contained in:
parent
07ff0fdb81
commit
fa65bd2062
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user