GraphQL enum type metadata type.
BaseMetadata
<TInput
>• TInput extends string
| number
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:EnumTypeConfig
<TInput
>
The GraphQL enum type config.
packages/valibot/src/metadata.ts:290
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
>(name
) =>AsEnumTypeMetadata
<TInput
><TInput
>(config
) =>AsEnumTypeMetadata
<TInput
>
The metadata reference.
Creates a GraphQL enum type metadata.
• TInput extends string
| number
• name: string
The GraphQL enum name.
AsEnumTypeMetadata
<TInput
>
A GraphQL enum type metadata.
Creates a GraphQL enum type metadata.
• TInput extends string
| number
• config: EnumTypeConfig
<TInput
>
The GraphQL enum config.
AsEnumTypeMetadata
<TInput
>
A GraphQL enum type metadata.
BaseMetadata.reference
packages/valibot/src/metadata.ts:285
readonly
type:"gqloom.asEnumType"
The metadata type.
BaseMetadata.type
packages/valibot/src/metadata.ts:281