import { omitAsync } from "https://deno.land/x/valibot@v0.23.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 ObjectKeys<TSchema>
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 ObjectKeys<TSchema>
Parameters
optional
pipe: PipeAsync<ObjectOutput<Omit<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 ObjectKeys<TSchema>
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 ObjectKeys<TSchema>
TRest extends BaseSchema | BaseSchemaAsync | undefined
Parameters
optional
pipe: PipeAsync<ObjectOutput<Omit<TSchema["entries"], TKeys[number]>, TRest>>A validation and transformation pipe.