import { pickAsync } from "https://deno.land/x/valibot@v0.25.0/mod.ts";
Creates an async object schema that contains only the selected keys of an existing schema.
Type Parameters
TSchema extends ObjectSchema<any, any> | ObjectSchemaAsync<any, any>
TKeys extends (keyof TSchema["entries"])[]
Creates an async object schema that contains only the selected keys of an existing schema.
Type Parameters
TSchema extends ObjectSchema<any, any> | ObjectSchemaAsync<any, any>
TKeys extends (keyof TSchema["entries"])[]
Parameters
optional
pipe: PipeAsync<ObjectOutput<Pick<TSchema["entries"], TKeys[number]>, undefined>>A validation and transformation pipe.
Creates an async object schema that contains only the selected keys of an existing schema.
Type Parameters
TSchema extends ObjectSchema<any, any> | ObjectSchemaAsync<any, any>
TKeys extends (keyof TSchema["entries"])[]
TRest extends BaseSchema | BaseSchemaAsync | undefined
Creates an async object schema that contains only the selected keys of an existing schema.
Type Parameters
TSchema extends ObjectSchema<any, any> | ObjectSchemaAsync<any, any>
TKeys extends (keyof TSchema["entries"])[]
TRest extends BaseSchema | BaseSchemaAsync | undefined
Parameters
optional
pipe: PipeAsync<ObjectOutput<Pick<TSchema["entries"], TKeys[number]>, TRest>>A validation and transformation pipe.