mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
[typer] Fix objectTypeEquals
This commit is contained in:
1 parent
6f06b0e08a
commit
f1af022be1
1 file changed
+3
-1
@@ -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