vite-plugin-react-server
Version:
Vite plugin for React Server Components (RSC)
6 lines • 322 B
TypeScript
export declare const PANIC_SYMBOL: unique symbol;
export declare function shouldPanic(error: unknown, panicThreshold: "none" | "critical_errors" | "all_errors", critical?: boolean): boolean;
export declare function isPanic<T>(error: T): error is T & {
[PANIC_SYMBOL]: true;
};
//# sourceMappingURL=shouldPanic.d.ts.map