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

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

JSON Schema Type Builder with Static Type Resolution for TypeScript
Go to Latest
method ExtendedTypeBuilder.prototype.Function
import { ExtendedTypeBuilder } from "https://deno.land/x/typebox@0.26.0-dev.1/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