mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-25 10:20:49 -06:00
Including numeric index signatures
This commit is contained in:
parent
0ab2b2a069
commit
00bffe1a40
@ -5276,7 +5276,7 @@ namespace ts {
|
||||
return indexTypesIdenticalTo(IndexKind.Number, source, target);
|
||||
}
|
||||
let targetType = getIndexTypeOfType(target, IndexKind.Number);
|
||||
if (targetType) {
|
||||
if (targetType && !(targetType.flags & TypeFlags.Any)) {
|
||||
let sourceStringType = getIndexTypeOfType(source, IndexKind.String);
|
||||
let sourceNumberType = getIndexTypeOfType(source, IndexKind.Number);
|
||||
if (!(sourceStringType || sourceNumberType)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user