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

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

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

[Standard] Creates a Not type. The first argument is the disallowed type, the second is the allowed.

Type Parameters

N extends TSchema
T extends TSchema

Parameters

not: N
schema: T
optional
options: SchemaOptions