Files
NapCatQQ/.pnpm-store/v3/files/64/43065f0358eb960b5eb5808803f113aabaa135be1743c6412d07bb05b5aaa4eb110694736f5a25da0e7ee83abca133033e9606b5bf281e47a799ab4e33a724
TanTan e311ca3275
Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

14 lines
522 B
Plaintext

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TemplateLiteralToUnion = TemplateLiteralToUnion;
const index_1 = require("../union/index");
const index_2 = require("../literal/index");
const generate_1 = require("./generate");
/** Returns a Union from the given TemplateLiteral */
function TemplateLiteralToUnion(schema) {
const R = (0, generate_1.TemplateLiteralGenerate)(schema);
const L = R.map((S) => (0, index_2.Literal)(S));
return (0, index_1.UnionEvaluated)(L);
}