Skip to content

Commit a69badd

Browse files
Abbondanzometa-codesync[bot]
authored andcommitted
Add missing LogBox method declarations to LogBox.d.ts (#57472)
Summary: Pull Request resolved: #57472 `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 fbshipit-source-id: a7b739266ebf02297797b47ff6931652a359d1cf
1 parent c080619 commit a69badd

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

packages/react-native/Libraries/LogBox/LogBox.d.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,17 @@ export interface LogBoxStatic {
2222

2323
install(): void;
2424
uninstall(): void;
25+
26+
/**
27+
* Whether LogBox is currently installed.
28+
*/
29+
isInstalled(): boolean;
30+
31+
/**
32+
* Clear all logs and dismiss the LogBox surface. Invoked by the Fast Refresh
33+
* pipeline on each applied update.
34+
*/
35+
clearAllLogs(): void;
2536
}
2637

2738
export const LogBox: LogBoxStatic;

0 commit comments

Comments
 (0)