UNPKG

612 BTypeScriptView Raw
1import type { Mechanism, WrappedFunction } from '@sentry/core';
2export declare const WINDOW: import("@sentry/core").InternalGlobal & Window;
3/**
4 * @hidden
5 */
6export declare function shouldIgnoreOnError(): boolean;
7/**
8 * @hidden
9 */
10export declare function ignoreNextOnError(): void;
11type WrappableFunction = Function;
12export declare function wrap<T extends WrappableFunction>(fn: T, options?: {
13 mechanism?: Mechanism;
14}): WrappedFunction<T>;
15export declare function wrap<NonFunction>(fn: NonFunction, options?: {
16 mechanism?: Mechanism;
17}): NonFunction;
18export {};
19//# sourceMappingURL=helpers.d.ts.map
\No newline at end of file