Remove optionality of intersectionRect

Summary:
Changelog:
[General][Changed] - Mark `intersectionRect` required in `NativeIntersectionObserverEntry` to reflect native logic.

Reviewed By: rubennorte

Differential Revision: D67868219

fbshipit-source-id: cdc15908c0cf687b13d1424a59ee1e2383811ab3
This commit is contained in:
Luna Wei
2025-01-06 13:30:10 -08:00
committed by Facebook GitHub Bot
parent 3744349ed7
commit 8681fc2ab2
2 changed files with 2 additions and 3 deletions
@@ -45,7 +45,7 @@ using NativeIntersectionObserverEntry =
// rootRect
RectAsTuple,
// intersectionRect
std::optional<RectAsTuple>,
RectAsTuple,
// isIntersectingAboveThresholds
bool,
// time
@@ -17,8 +17,7 @@ export type NativeIntersectionObserverEntry = {
targetInstanceHandle: mixed,
targetRect: $ReadOnlyArray<number>, // It's actually a tuple with x, y, width and height
rootRect: $ReadOnlyArray<number>, // It's actually a tuple with x, y, width and height
// TODO(T209328432) - Remove optionality of intersectionRect when native changes are released
intersectionRect: ?$ReadOnlyArray<number>, // It's actually a tuple with x, y, width and height
intersectionRect: $ReadOnlyArray<number>, // It's actually a tuple with x, y, width and height
isIntersectingAboveThresholds: boolean,
time: number,
};