Files
NapCatQQ/.pnpm-store/v3/files/8e/a9dcc775a43ed506c460f3d13473731b1b0ddd68ff28277136897c26ec699e96ec316d3b786e0a9a2460d8a9a349df14ada0a371b7ebbab7103f4e8abaa35c
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
585 B
Plaintext

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Tuple = Tuple;
const type_1 = require("../create/type");
const index_1 = require("../symbols/index");
/** `[Json]` Creates a Tuple type */
function Tuple(types, options) {
// prettier-ignore
return (0, type_1.CreateType)(types.length > 0 ?
{ [index_1.Kind]: 'Tuple', type: 'array', items: types, additionalItems: false, minItems: types.length, maxItems: types.length } :
{ [index_1.Kind]: 'Tuple', type: 'array', minItems: types.length, maxItems: types.length }, options);
}