import { keyof } from "https://deno.land/x/valibot@v1.0.0-beta.2-to-json-schema/src/methods/index.ts";
Creates a picklist schema of object keys.
Parameters
schema: TSchema
The object schema.
Returns
PicklistSchema<ObjectKeys<TSchema>, undefined>
A picklist schema.
Creates a picklist schema of object keys.
Type Parameters
TMessage extends ErrorMessage<PicklistIssue> | undefined
Returns
A picklist schema.