GraphQL union type metadata type.
BaseMetadata
<TInput
>• TInput extends object
readonly
optional
~types:object
Internal
The input, output and issue type.
readonly
input:TInput
readonly
issue:never
readonly
output:TInput
BaseMetadata.~types
node_modules/.pnpm/valibot@1.0.0-beta.7_typescript@5.4.3/node_modules/valibot/dist/index.d.ts:2962
readonly
config:Partial
<GraphQLUnionTypeConfig
<any
,any
>>
The GraphQL union type config.
packages/valibot/src/metadata.ts:351
readonly
kind:"metadata"
The object kind.
BaseMetadata.kind
node_modules/.pnpm/valibot@1.0.0-beta.7_typescript@5.4.3/node_modules/valibot/dist/index.d.ts:2948
readonly
reference: <TInput
>(config
) =>AsUnionTypeMetadata
<TInput
><TInput
>(name
) =>AsUnionTypeMetadata
<TInput
>
The metadata reference.
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.
Creates a GraphQL union type metadata.
• TInput extends object
• name: string
The GraphQL union type Name.
AsUnionTypeMetadata
<TInput
>
A GraphQL union type metadata.
BaseMetadata.reference
packages/valibot/src/metadata.ts:346
readonly
type:"gqloom.asUnionType"
The metadata type.
BaseMetadata.type
packages/valibot/src/metadata.ts:342