UNPKG

831 BTypeScriptView Raw
1import type { WorkletStackDetails } from './commonTypes';
2type ReanimatedError = Error & 'ReanimatedError';
3interface ReanimatedErrorConstructor extends Error {
4 new (message?: string): ReanimatedError;
5 (message?: string): ReanimatedError;
6 readonly prototype: ReanimatedError;
7}
8declare const ReanimatedErrorConstructor: ReanimatedErrorConstructor;
9export { ReanimatedErrorConstructor as ReanimatedError };
10/**
11 * Registers `ReanimatedError` in global scope. Use it only for Worklet
12 * runtimes.
13 */
14export declare function registerReanimatedError(): void;
15export declare function registerWorkletStackDetails(hash: number, stackDetails: WorkletStackDetails): void;
16export declare function reportFatalErrorOnJS({ message, stack, }: {
17 message: string;
18 stack?: string;
19}): void;
20//# sourceMappingURL=errors.d.ts.map
\No newline at end of file