Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

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

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

Standard Creates a union type

Parameters

items: []
optional
options: SchemaOptions

Standard Creates a union type

Parameters

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