Interface: AsUnionTypeMetadata<TInput>

GraphQL union type metadata type.

Extends

  • BaseMetadata<TInput>

Type Parameters

TInput extends object

Properties

~types?

readonly optional ~types: object

Internal

The input, output and issue type.

input

readonly input: TInput

issue

readonly issue: never

output

readonly output: TInput

Inherited from

BaseMetadata.~types

Defined in

node_modules/.pnpm/valibot@1.0.0-beta.7_typescript@5.4.3/node_modules/valibot/dist/index.d.ts:2962


config

readonly config: Partial<GraphQLUnionTypeConfig<any, any>>

The GraphQL union type config.

Defined in

packages/valibot/src/metadata.ts:351


kind

readonly kind: "metadata"

The object kind.

Inherited from

BaseMetadata.kind

Defined in

node_modules/.pnpm/valibot@1.0.0-beta.7_typescript@5.4.3/node_modules/valibot/dist/index.d.ts:2948


reference()

readonly reference: <TInput>(config) => AsUnionTypeMetadata<TInput><TInput>(name) => AsUnionTypeMetadata<TInput>

The metadata reference.

Creates a GraphQL union type metadata.

Type Parameters

TInput extends object

Parameters

config: Partial<GraphQLUnionTypeConfig<any, any>>

The GraphQL union config.

Returns

AsUnionTypeMetadata<TInput>

A GraphQL union type metadata.

Creates a GraphQL union type metadata.

Type Parameters

TInput extends object

Parameters

name: string

The GraphQL union type Name.

Returns

AsUnionTypeMetadata<TInput>

A GraphQL union type metadata.

Overrides

BaseMetadata.reference

Defined in

packages/valibot/src/metadata.ts:346


type

readonly type: "gqloom.asUnionType"

The metadata type.

Overrides

BaseMetadata.type

Defined in

packages/valibot/src/metadata.ts:342