Mapped type { [P in any]: T } should yield { [x: string]: T }
This commit is contained in:
parent
07ff0fdb81
commit
fa65bd2062
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue