mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
[types] Check the shapeId as part of the object type equals check
This commit is contained in:
@@ -171,7 +171,11 @@ function polyTypeEquals(tA: Type, tB: Type): boolean {
|
||||
}
|
||||
|
||||
function objectTypeEquals(tA: Type, tB: Type): boolean {
|
||||
return typeKindCheck(tA, tB, "Object");
|
||||
if (tA.kind === "Object" && tB.kind == "Object") {
|
||||
return tA.shapeId === tB.shapeId;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
function funcTypeEquals(tA: Type, tB: Type): boolean {
|
||||
|
||||
Reference in New Issue
Block a user