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

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

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

[Json] Creates a Union type

Parameters

anyOf: []
optional
options: SchemaOptions

[Json] Creates a Union type

Parameters

anyOf: [...T]
optional
options: SchemaOptions

[Json] Creates a Union type

Parameters

anyOf: [...T]
optional
options: SchemaOptions

[Json-Experimental] Converts a TemplateLiteral into a Union

Parameters

template: T