asUnionType<
TInput
>(config
):AsUnionTypeMetadata
<TInput
>
Creates a GraphQL union type metadata.
• TInput extends object
• config: Partial
<GraphQLUnionTypeConfig
<any
, any
>>
The GraphQL union config.
AsUnionTypeMetadata
<TInput
>
A GraphQL union type metadata.
packages/valibot/src/metadata.ts:361
asUnionType<
TInput
>(name
):AsUnionTypeMetadata
<TInput
>
Creates a GraphQL union type metadata.
• TInput extends object
• name: string
The GraphQL union type Name.
AsUnionTypeMetadata
<TInput
>
A GraphQL union type metadata.
packages/valibot/src/metadata.ts:371