Zod Utils by Ian Macalinao
    Preparing search index...

    Function zNullishString

    • A Zod schema that converts empty or undefined strings to null.

      Type Parameters

      • T extends ZodType<string, ZodTypeDef, string>

      Parameters

      • inner: T

      Returns ZodType<null | output<T>, ZodTypeDef, undefined | null | input<T>>