asEnumType<
TInput
>(name
):AsEnumTypeMetadata
<TInput
>
Creates a GraphQL enum type metadata.
• TInput extends string
| number
• name: string
The GraphQL enum name.
AsEnumTypeMetadata
<TInput
>
A GraphQL enum type metadata.
packages/valibot/src/metadata.ts:307
asEnumType<
TInput
>(config
):AsEnumTypeMetadata
<TInput
>
Creates a GraphQL enum type metadata.
• TInput extends string
| number
• config: EnumTypeConfig
<TInput
>
The GraphQL enum config.
AsEnumTypeMetadata
<TInput
>
A GraphQL enum type metadata.
packages/valibot/src/metadata.ts:317