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

20 lines
773 B
Plaintext

import { MappedResult } from '../mapped/index.mjs';
import { Omit } from './omit.mjs';
import { Clone } from '../clone/value.mjs';
// prettier-ignore
function FromProperties(properties, propertyKeys, options) {
const result = {};
for (const K2 of globalThis.Object.getOwnPropertyNames(properties))
result[K2] = Omit(properties[K2], propertyKeys, Clone(options));
return result;
}
// prettier-ignore
function FromMappedResult(mappedResult, propertyKeys, options) {
return FromProperties(mappedResult.properties, propertyKeys, options);
}
// prettier-ignore
export function OmitFromMappedResult(mappedResult, propertyKeys, options) {
const properties = FromMappedResult(mappedResult, propertyKeys, options);
return MappedResult(properties);
}