UNPKG

701 BTypeScriptView Raw
1import type { Integration, IntegrationClass } from '@sentry/types';
2/**
3 * Patch toString calls to return proper name for wrapped functions.
4 *
5 * ```js
6 * Sentry.init({
7 * integrations: [
8 * functionToStringIntegration(),
9 * ],
10 * });
11 * ```
12 */
13export declare const functionToStringIntegration: () => import("@sentry/types").IntegrationFnResult;
14/**
15 * Patch toString calls to return proper name for wrapped functions.
16 *
17 * @deprecated Use `functionToStringIntegration()` instead.
18 */
19export declare const FunctionToString: IntegrationClass<Integration & {
20 setupOnce: () => void;
21}>;
22export type FunctionToString = typeof FunctionToString;
23//# sourceMappingURL=functiontostring.d.ts.map
\No newline at end of file