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

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

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

Extended Creates a function type

Type Parameters

T extends TTuple<TSchema[]>
U extends TSchema

Parameters

parameters: T
returns: U
optional
options: SchemaOptions

Extended Creates a function type

Type Parameters

T extends TSchema[]
U extends TSchema

Parameters

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