UNPKG

safe-recovery-service-sdk

Version:

Safe Recovery service SDK by Candidelabs

22 lines 758 B
export interface Dictionary<T> { [Key: string]: T; } export type BasicErrorCode = "UNKNOWN_ERROR" | "TIMEOUT" | "SIWE_ERROR" | "HTTP_ERROR" | "BAD_DATA"; export type Jsonable = string | number | boolean | null | undefined | readonly Jsonable[] | { readonly [key: string]: Jsonable; } | { toJSON(): Jsonable; }; export declare class SafeRecoveryServiceSdkError extends Error { readonly code: BasicErrorCode; readonly context?: Jsonable; readonly errno?: number; constructor(code: BasicErrorCode, message: string, options?: { cause?: Error; errno?: number; context?: Jsonable; }); stringify(): string; } export declare function ensureError(value: unknown): Error; //# sourceMappingURL=errors.d.ts.map