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

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

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

[Standard] Creates a mapped type whose keys are omitted from the given type

Type Parameters

T extends TSchema
K extends (keyof Static<T>)[]

Parameters

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

Returns

TOmit<T, K[number]>

[Standard] Creates a mapped type whose keys are omitted from the given type

Type Parameters

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

Parameters

schema: T
keys: K
optional
options: SchemaOptions