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

27 lines
920 B
Plaintext

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.OmitFromMappedKey = OmitFromMappedKey;
const index_1 = require("../mapped/index");
const omit_1 = require("./omit");
const value_1 = require("../clone/value");
// prettier-ignore
function FromPropertyKey(type, key, options) {
return { [key]: (0, omit_1.Omit)(type, [key], (0, value_1.Clone)(options)) };
}
// prettier-ignore
function FromPropertyKeys(type, propertyKeys, options) {
return propertyKeys.reduce((Acc, LK) => {
return { ...Acc, ...FromPropertyKey(type, LK, options) };
}, {});
}
// prettier-ignore
function FromMappedKey(type, mappedKey, options) {
return FromPropertyKeys(type, mappedKey.keys, options);
}
// prettier-ignore
function OmitFromMappedKey(type, mappedKey, options) {
const properties = FromMappedKey(type, mappedKey, options);
return (0, index_1.MappedResult)(properties);
}