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

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

Json Schema Type Builder with Static Type Resolution for TypeScript
Go to Latest
method JsonTypeBuilder.prototype.Exclude
import { JsonTypeBuilder } from "https://deno.land/x/typebox@0.31.20/src/typebox.ts";

[Json] Constructs a type by excluding from unionType all union members that are assignable to excludedMembers

Type Parameters

L extends TSchema
R extends TSchema

Parameters

unionType: L
excludedMembers: R
optional
options: SchemaOptions = [UNSUPPORTED]