import { pick } from "https://deno.land/x/valibot@v0.9.0/src/index.ts";
Creates an object schema that contains only the selected keys of an existing schema.
Type Parameters
TObjectSchema extends ObjectSchema<any>
TKeys extends (keyof TObjectSchema["object"])[]
Parameters
optional
pipe: Pipe<ObjectOutput<Pick<TObjectSchema["object"], TKeys[number]>>>A validation and transformation pipe.
Creates an object schema that contains only the selected keys of an existing schema.
Type Parameters
TObjectSchema extends ObjectSchema<any>
TKeys extends (keyof TObjectSchema["object"])[]
Parameters
optional
pipe: Pipe<ObjectOutput<Pick<TObjectSchema["object"], TKeys[number]>>>A validation and transformation pipe.