UNPKG

@sinclair/typebox

Version:

Json Schema Type Builder with Static Type Resolution for TypeScript

6 lines (5 loc) 201 B
import { CreateType } from '../create/type.mjs'; import { Kind } from '../symbols/index.mjs'; export function UnionCreate(T, options) { return CreateType({ [Kind]: 'Union', anyOf: T }, options); }