import { omitAsync } from "https://deno.land/x/valibot@v0.13.0/src/index.ts";
Creates an async object schema that contains only the selected keys of an existing schema.
Type Parameters
TObjectSchema extends ObjectSchema<any> | ObjectSchemaAsync<any>
TKeys extends ObjectKeys<TObjectSchema>
Parameters
optional
pipe: PipeAsync<ObjectOutput<Omit<TObjectSchema["object"], TKeys[number]>>>A validation and transformation pipe.
Creates an async object schema that contains only the selected keys of an existing schema.
Type Parameters
TObjectSchema extends ObjectSchema<any> | ObjectSchemaAsync<any>
TKeys extends ObjectKeys<TObjectSchema>
Parameters
optional
pipe: PipeAsync<ObjectOutput<Omit<TObjectSchema["object"], TKeys[number]>>>A validation and transformation pipe.