Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/valibot/mod.ts>omit

The modular and type safe schema library for validating structural data 🤖
Extremely Popular
Latest
function omit
import { omit } from "https://deno.land/x/valibot@v1.0.0-beta.1-i18n/mod.ts";

Creates a modified copy of an object schema that does not contain the selected entries.

Type Parameters

TSchema extends Schema
TKeys extends ObjectKeys<TSchema>

Parameters

schema: TSchema

The schema to omit from.

keys: TKeys

The selected entries.

Returns

An object schema.