import { keyof } from "https://deno.land/x/valibot@v0.5.0/src/methods/keyof/keyof.ts";
Creates a enum schema of object keys.
Type Parameters
TSchema extends ObjectSchema<any> | ObjectSchemaAsync<any>
Parameters
schema: TSchema
The object schema.
Returns
EnumSchema<TupleOrNever<UnionToTuple<keyof TSchema["object"]>>>
A enum schema.