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

31 lines
1.0 KiB
Plaintext

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.IntrinsicFromMappedKey = IntrinsicFromMappedKey;
const index_1 = require("../mapped/index");
const intrinsic_1 = require("./intrinsic");
const index_2 = require("../literal/index");
const value_1 = require("../clone/value");
// prettier-ignore
function MappedIntrinsicPropertyKey(K, M, options) {
return {
[K]: (0, intrinsic_1.Intrinsic)((0, index_2.Literal)(K), M, (0, value_1.Clone)(options))
};
}
// prettier-ignore
function MappedIntrinsicPropertyKeys(K, M, options) {
const result = K.reduce((Acc, L) => {
return { ...Acc, ...MappedIntrinsicPropertyKey(L, M, options) };
}, {});
return result;
}
// prettier-ignore
function MappedIntrinsicProperties(T, M, options) {
return MappedIntrinsicPropertyKeys(T['keys'], M, options);
}
// prettier-ignore
function IntrinsicFromMappedKey(T, M, options) {
const P = MappedIntrinsicProperties(T, M, options);
return (0, index_1.MappedResult)(P);
}