File tree 1 file changed +15
-1
lines changed
1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change 1
1
import { Component , ReactNode } from "react" ;
2
- import Rollbar , { Callback } from "rollbar" ;
2
+ import Rollbar , { Callback , Configuration } from "rollbar" ;
3
3
4
4
export const LEVEL_DEBUG = "debug" ;
5
5
export const LEVEL_INFO = "info" ;
@@ -39,6 +39,20 @@ export class RollbarContext extends Component<{
39
39
children : ReactNode ;
40
40
context ?: string ;
41
41
} > { }
42
+
43
+ export interface ProviderProps {
44
+ Rollbar ?: new ( options : Configuration ) => Rollbar ;
45
+ config ?: Configuration | ( ( ) => Configuation ) ;
46
+ instance ?: Rollbar ;
47
+ }
48
+
49
+ interface ProviderState {
50
+ rollbar : Rollbar ;
51
+ options : Coniguration ;
52
+ }
53
+
54
+ export class Provider extends Component < ProviderProps , ProviderState > { }
55
+
42
56
export function useRollbar ( ) : Rollbar ;
43
57
export function useRollbarConfiguration ( config : Rollbar . Configuration ) : void ;
44
58
export function useRollbarContext ( ctx ?: string , isLayout ?: boolean ) : void ;
You can’t perform that action at this time.
0 commit comments