UNPKG

558 BTypeScriptView Raw
1export declare type InstrumentHandlerType = 'console' | 'dom' | 'fetch' | 'history' | 'sentry' | 'xhr' | 'error' | 'unhandledrejection';
2export declare type InstrumentHandlerCallback = (data: any) => void;
3/**
4 * Add handler that will be called when given type of instrumentation triggers.
5 * Use at your own risk, this might break without changelog notice, only used internally.
6 * @hidden
7 */
8export declare function addInstrumentationHandler(type: InstrumentHandlerType, callback: InstrumentHandlerCallback): void;
9//# sourceMappingURL=instrument.d.ts.map
\No newline at end of file