asEnumType<
TArg
>(config
): (arg
,ctx
) =>void
Register as a GraphQL enum type.
• TArg
• config: EnumConfig
<TArg
>
The GraphQL enum config.
Function
zod superRefine refinement.
• arg: TArg
• ctx: RefinementCtx
void
packages/zod/src/metadata.ts:79
asEnumType(
name
): (arg
,ctx
) =>void
Register as a GraphQL enum type.
• name: string
The GraphQL enum name.
Function
zod superRefine refinement.
• arg: any
• ctx: RefinementCtx
void
packages/zod/src/metadata.ts:89