[typer] Fix objectTypeEquals

This commit is contained in:
Sathya Gunasekaran
2022-12-20 13:38:09 +00:00
parent 6f06b0e08a
commit f1af022be1
+3 -1
View File
@@ -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;