import { omit } from "https://deno.land/x/valibot@v0.22.0/mod.ts";
Creates an object schema that contains not the selected keys of an existing schema.
Type Parameters
TSchema extends ObjectSchema<any, any>
TKeys extends ObjectKeys<TSchema>
Creates an object schema that contains not the selected keys of an existing schema.
Type Parameters
TSchema extends ObjectSchema<any, any>
TKeys extends ObjectKeys<TSchema>
Parameters
optional
pipe: Pipe<ObjectOutput<Omit<TSchema["entries"], TKeys[number]>, undefined>>A validation and transformation pipe.
Creates an object schema that contains not the selected keys of an existing schema.
Type Parameters
TSchema extends ObjectSchema<any, any>
TKeys extends ObjectKeys<TSchema>
TRest extends BaseSchema | undefined
Creates an object schema that contains not the selected keys of an existing schema.
Type Parameters
TSchema extends ObjectSchema<any, any>
TKeys extends ObjectKeys<TSchema>
TRest extends BaseSchema | undefined
Parameters
optional
pipe: Pipe<ObjectOutput<Omit<TSchema["entries"], TKeys[number]>, TRest>>A validation and transformation pipe.