Zodiac API Documentation - v0.0.3
    Preparing search index...

    Function custom

    • Type Parameters

      • T

      Parameters

      • Optionalcheck: (data: any) => any
      • Optional_params: string | CustomParams | ((input: any) => CustomParams)
      • Optionalfatal: boolean

        Pass fatal into the params object instead:

        z.string().custom((val) => val.length > 5, { fatal: false })
        

      Returns ZodType<T, ZodTypeDef, T>