Skip to content

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

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

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

Conversation

@Abbondanzo

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

Differential Revision: 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

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.

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. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant