next
Version:
The React Framework
12 lines (11 loc) • 547 B
TypeScript
declare const digestSym: unique symbol;
declare const consoleTypeSym: unique symbol;
type UnhandledError = Error & {
[digestSym]: 'NEXT_UNHANDLED_ERROR';
[consoleTypeSym]: 'string' | 'error';
environmentName: string;
};
export declare function createUnhandledError(message: string | Error, environmentName?: string | null): UnhandledError;
export declare const isUnhandledConsoleOrRejection: (error: any) => error is UnhandledError;
export declare const getUnhandledErrorType: (error: UnhandledError) => "string" | "error";
export {};