posthog-js
Version:
Posthog-js allows you to automatically capture usage and send events to PostHog.
10 lines (7 loc) • 474 B
TypeScript
import { ErrorTracking } from '@posthog/core';
declare const posthogErrorWrappingFunctions: {
wrapOnError: (captureFn: (props: ErrorTracking.ErrorProperties) => void) => () => void;
wrapUnhandledRejection: (captureFn: (props: ErrorTracking.ErrorProperties) => void, defaultReturnValue?: boolean) => () => void;
wrapConsoleError: (captureFn: (props: ErrorTracking.ErrorProperties) => void) => () => void;
};
export { posthogErrorWrappingFunctions as default };