File tree 2 files changed +13
-0
lines changed
2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change
1
+ export type JSExceptionHandler = ( error : Error , isFatal : boolean ) => void ;
2
+ export type NativeExceptionHandler = ( exceptionMsg : string ) => void ;
3
+
4
+ declare const getJSExceptionHandler : ( ) => JSExceptionHandler ;
5
+
6
+ declare const setJSExceptionHandler : ( handler : JSExceptionHandler , allowInDevMode ?: boolean ) => void ;
7
+
8
+ declare const setNativeExceptionHandler : (
9
+ handler : NativeExceptionHandler ,
10
+ forceAppQuit ?: boolean , // Android only
11
+ executeDefaultHandler ?: boolean ,
12
+ ) => void ;
Original file line number Diff line number Diff line change 3
3
"version" : " 2.10.7" ,
4
4
"description" : " A react native module that lets you to register a global error handler that can capture fatal/non fatal uncaught exceptions." ,
5
5
"main" : " index.js" ,
6
+ "typings" : " index.d.ts" ,
6
7
"scripts" : {
7
8
"test" : " echo no tests && exit 1" ,
8
9
"lint" : " eslint app/" ,
You can’t perform that action at this time.
0 commit comments