Function union

  • Creates a union shape that tries to parse the input with one of the provided shapes.

    Type Parameters

    Parameters

    • shapes: Shapes

      The array of shapes to try.

    • Optional options: IssueOptions | Message

      The issue options or the issue message.

    Returns UnionShape<Shapes>