@rendley/sdk - v1.12.6
    Preparing search index...

    Class ZodCatch<T>

    Type Parameters

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    _input: unknown
    _output: T["_output"]
    _type: T["_output"]
    spa: (
        data: unknown,
        params?: Partial<Zod.ParseParams>,
    ) => Promise<Zod.SafeParseReturnType<unknown, T["_output"]>>

    Alias of safeParseAsync

    create: <T_1 extends Zod.ZodTypeAny>(
        type: T_1,
        params: {
            description?: string;
            errorMap?: Zod.ZodErrorMap;
            invalid_type_error?: string;
            required_error?: string;
        } & { catch: T_1["_output"]
        | (() => T_1["_output"]) },
    ) => Zod.ZodCatch<T_1>

    Accessors

    • get description(): undefined | string

      Returns undefined | string

    Methods

    • Parameters

      • description: string

      Returns this

    • Returns T