Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/typebox/src/typebox.ts>TypeBuilder#Omit

JSON Schema Type Builder with Static Type Resolution for TypeScript
Go to Latest
method TypeBuilder.prototype.Omit
import { TypeBuilder } from "https://deno.land/x/typebox@0.25.12/src/typebox.ts";

Standard Creates a new object type whose keys are omitted from the given source type

Type Parameters

T extends TObject
K extends TUnion<TLiteral<string>[]>

Parameters

schema: T
keys: K
optional
options: ObjectOptions

Standard Creates a new object type whose keys are omitted from the given source type

Parameters

schema: T
keys: readonly [...K]
optional
options: ObjectOptions