mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
[typer] Fix objectTypeEquals
This commit is contained in:
@@ -508,7 +508,9 @@ function objectTypeEquals(tA: Type, tB: Type): boolean {
|
||||
}
|
||||
|
||||
for (const key of tA.properties.keys()) {
|
||||
if (tA.properties.get(key) !== tB.properties.get(key)) return false;
|
||||
if (!typeEquals(tA.properties.get(key)!, tB.properties.get(key)!)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user