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

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

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

[Json] Creates a Conditional type

Type Parameters

L extends TSchema
R extends TSchema
T extends TSchema
U extends TSchema

Parameters

left: L
right: R
trueType: T
falseType: U
optional
options: SchemaOptions = [UNSUPPORTED]