@sinclair/typebox
Version:
Json Schema Type Builder with Static Type Resolution for TypeScript
10 lines (8 loc) • 320 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.UnionCreate = UnionCreate;
const type_1 = require("../create/type");
const index_1 = require("../symbols/index");
function UnionCreate(T, options) {
return (0, type_1.CreateType)({ [index_1.Kind]: 'Union', anyOf: T }, options);
}