UNPKG

820 BTypeScriptView Raw
1import { Event, Exception, StackFrame } from '@sentry/types';
2import { StackFrame as TraceKitStackFrame, StackTrace as TraceKitStackTrace } from './tracekit';
3/**
4 * This function creates an exception from an TraceKitStackTrace
5 * @param stacktrace TraceKitStackTrace that will be converted to an exception
6 * @hidden
7 */
8export declare function exceptionFromStacktrace(stacktrace: TraceKitStackTrace): Exception;
9/**
10 * @hidden
11 */
12export declare function eventFromPlainObject(exception: Record<string, unknown>, syntheticException?: Error, rejection?: boolean): Event;
13/**
14 * @hidden
15 */
16export declare function eventFromStacktrace(stacktrace: TraceKitStackTrace): Event;
17/**
18 * @hidden
19 */
20export declare function prepareFramesForEvent(stack: TraceKitStackFrame[]): StackFrame[];
21//# sourceMappingURL=parsers.d.ts.map
\No newline at end of file