Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/typebox/src/typebox.ts>TypeBuilder#Constructor

JSON Schema Type Builder with Static Type Resolution for TypeScript
Go to Latest
method TypeBuilder.prototype.Constructor
import { TypeBuilder } from "https://deno.land/x/typebox@0.25.20/src/typebox.ts";

Extended Creates a constructor type

Type Parameters

T extends TTuple<TSchema[]>
U extends TSchema

Parameters

parameters: T
returns: U
optional
options: SchemaOptions

Extended Creates a constructor type

Type Parameters

T extends TSchema[]
U extends TSchema

Parameters

parameters: [...T]
returns: U
optional
options: SchemaOptions