Skip to content

Add missing LogBox method declarations to LogBox.d.ts (#57472)#57472

Closed
Abbondanzo wants to merge 1 commit into
react:mainfrom
Abbondanzo:export-D110930249
Closed

Add missing LogBox method declarations to LogBox.d.ts (#57472)#57472
Abbondanzo wants to merge 1 commit into
react:mainfrom
Abbondanzo:export-D110930249

Conversation

@Abbondanzo

@Abbondanzo Abbondanzo commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Summary:

LogBox.d.ts declared only ignoreLogs, ignoreAllLogs, install, and uninstall, but the runtime LogBox object also exposes isInstalled() and clearAllLogs(). Add these two signatures so TypeScript consumers can call them without casting.

Changelog:
[General][Added] - Add isInstalled() and clearAllLogs() to the LogBox TypeScript declarations

Reviewed By: christophpurrer

Differential Revision: D110930249

@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 Jul 7, 2026
@meta-codesync

meta-codesync Bot commented Jul 7, 2026

Copy link
Copy Markdown

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

Summary:

`LogBox.d.ts` declared only `ignoreLogs`, `ignoreAllLogs`, `install`, and `uninstall`, but the runtime `LogBox` object also exposes `isInstalled()` and `clearAllLogs()`. Add these two signatures so TypeScript consumers can call them without casting.

Changelog:
[General][Added] - Add `isInstalled()` and `clearAllLogs()` to the `LogBox` TypeScript declarations

Reviewed By: christophpurrer

Differential Revision: D110930249
@meta-codesync meta-codesync Bot changed the title Add missing LogBox method declarations to LogBox.d.ts Add missing LogBox method declarations to LogBox.d.ts (#57472) Jul 8, 2026
@Abbondanzo Abbondanzo force-pushed the export-D110930249 branch from 57275d3 to 7666583 Compare July 8, 2026 14:52
@meta-codesync meta-codesync Bot closed this in a69badd Jul 8, 2026
@meta-codesync meta-codesync Bot added the Merged This PR has been merged. label Jul 8, 2026
@meta-codesync

meta-codesync Bot commented Jul 8, 2026

Copy link
Copy Markdown

This pull request has been merged in a69badd.

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. 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