Design System Utilities @ 0.1.1-alpha.0
    Preparing search index...

    Function arrayToUnionSchema

    • Internal

      Takes an array of values and translates them into an appropriate ZodType.

      Type Parameters

      • T_Value extends Primitive

      Parameters

      Returns
          | ZodUndefined
          | ZodNull
          | ZodLiteral<T_Value>
          | ZodUnion<[ArrayMoreThanOne, ArrayMoreThanOne, ...ArrayMoreThanOne[]]>
          | undefined

      0.1.0-alpha