Interface ZodFunctionDef<Args, Returns>

interface ZodFunctionDef<
    Args extends ZodTuple<any, any> = ZodTuple<any, any>,
    Returns extends ZodTypeAny = ZodTypeAny,
> {
    args: Args;
    description?: string;
    errorMap?: ZodErrorMap;
    returns: Returns;
    typeName: ZodFunction;
}

Type Parameters

Hierarchy (View Summary)

Properties

args: Args
description?: string
errorMap?: ZodErrorMap
returns: Returns
typeName: ZodFunction