BUPKIS
    Preparing search index...

    Interface $ZodCustomDef<O>

    interface $ZodCustomDef<O = unknown> {
        abort?: boolean;
        check: "custom";
        checks?: z.core.$ZodCheck<never>[];
        error?: $ZodErrorMap<$ZodIssue>;
        fn: (arg: O) => unknown;
        params?: Record<string, any>;
        path?: PropertyKey[];
        type: "custom";
        when?: (payload: ParsePayload) => boolean;
    }

    Type Parameters

    • O = unknown

    Hierarchy (View Summary)

    Index

    Properties

    abort?: boolean

    If true, no later checks will be executed if this check fails. Default false.

    check: "custom"
    checks?: z.core.$ZodCheck<never>[]
    fn: (arg: O) => unknown
    params?: Record<string, any>
    path?: PropertyKey[]
    type: "custom"
    when?: (payload: ParsePayload) => boolean

    If provided, this check will only be executed if the function returns true. Defaults to payload => z.util.isAborted(payload).