Files
NapCatQQ/.pnpm-store/v3/files/24/02e547a4fcda7cef2e879ddcea30e595de4e183c79c950c164ddfbc8ea72ad2ccd4d87df42dd126f0329e7157287cda6e73361bb72aac42258488dfcb426c6
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

15 lines
529 B
Plaintext

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Union = Union;
const index_1 = require("../never/index");
const type_1 = require("../create/type");
const union_create_1 = require("./union-create");
/** `[Json]` Creates a Union type */
function Union(types, options) {
// prettier-ignore
return (types.length === 0 ? (0, index_1.Never)(options) :
types.length === 1 ? (0, type_1.CreateType)(types[0], options) :
(0, union_create_1.UnionCreate)(types, options));
}