UNPKG

@herbertgao/surgio

Version:

Generating rules for Surge, Clash, Quantumult like a PRO

20 lines (19 loc) 618 B
import { z } from 'zod'; type SurgioErrorOptions = { providerName?: string; providerPath?: string; nodeIndex?: number; cause?: unknown; }; declare class SurgioError extends Error { providerName?: string; providerPath?: string; nodeIndex?: number; cause?: unknown; constructor(message: string, options?: SurgioErrorOptions); format(): string; } export declare const isSurgioError: (val: unknown) => val is SurgioError; export declare const isZodError: (error: unknown) => error is z.ZodError; export declare const isError: (val: unknown) => val is Error; export { SurgioError };