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

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

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

[Standard] Excludes from the left type any type that is not assignable to the right

Type Parameters

L extends TSchema
R extends TSchema

Parameters

left: L
right: R
optional
options: SchemaOptions = [UNSUPPORTED]