Skip to content

Add MutationObserver and IntersectionObserver types in bom.js.flow (#56624)#56624

Closed
rubennorte wants to merge 2 commits into
react:mainfrom
rubennorte:export-D102597515
Closed

Add MutationObserver and IntersectionObserver types in bom.js.flow (#56624)#56624
rubennorte wants to merge 2 commits into
react:mainfrom
rubennorte:export-D102597515

Conversation

@rubennorte

@rubennorte rubennorte commented Apr 27, 2026

Copy link
Copy Markdown
Contributor

Summary:

Adds Flow type definitions for MutationObserver (and its related types MutationRecord and MutationObserverInit) and IntersectionObserver (and its related types IntersectionObserverEntry, IntersectionObserverCallback and IntersectionObserverOptions) to React Native's library definitions, reflecting the features supported by the React Native implementations.

Changelog: [internal]

Differential Revision: D102597515

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Apr 27, 2026
@meta-codesync

meta-codesync Bot commented Apr 27, 2026

Copy link
Copy Markdown

@rubennorte has exported this pull request. If you are a Meta employee, you can view the originating Diff in D102597515.

Summary:

Fix the return types of toJSON() methods in PerformanceEntry, PerformanceServerTiming, and Performance to return an object representation ({[string]: unknown}) instead of a string, per the WebIDL spec ([Default] object toJSON()).

Changelog: [internal]

Differential Revision: D102597516
…eact#56624)

Summary:

Adds Flow type definitions for `MutationObserver` (and its related types `MutationRecord` and `MutationObserverInit`) and `IntersectionObserver` (and its related types `IntersectionObserverEntry`, `IntersectionObserverCallback` and `IntersectionObserverOptions`) to React Native's library definitions, reflecting the features supported by the React Native implementations.

Changelog: [internal]

Differential Revision: D102597515
@meta-codesync meta-codesync Bot changed the title Add MutationObserver and IntersectionObserver types in bom.js.flow Add MutationObserver and IntersectionObserver types in bom.js.flow (#56624) Apr 27, 2026
@meta-codesync meta-codesync Bot closed this in 9ac9edc Apr 27, 2026
@facebook-github-tools facebook-github-tools Bot added the Merged This PR has been merged. label Apr 27, 2026
@meta-codesync

meta-codesync Bot commented Apr 27, 2026

Copy link
Copy Markdown

This pull request has been merged in 9ac9edc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant