union<
TSchema
,TContext
>(types
):IUnionSchema
<InferType
<TSchema
> |undefined
,TContext
>
• TSchema extends Schema
<any
, any
, any
, ""
>
• TContext extends Maybe
<AnyObject
> = AnyObject
• types: readonly TSchema
[]
IUnionSchema
<InferType
<TSchema
> | undefined
, TContext
>
packages/yup/src/union.ts:18