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

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

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

[Standard] A conditional type expression that will return the true type if the left type extends the right

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]