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
19 lines
516 B
Plaintext
19 lines
516 B
Plaintext
import { MappedResult } from '../mapped/index.mjs';
|
|
import { Extract } from './extract.mjs';
|
|
// prettier-ignore
|
|
function FromProperties(P, T) {
|
|
const Acc = {};
|
|
for (const K2 of globalThis.Object.getOwnPropertyNames(P))
|
|
Acc[K2] = Extract(P[K2], T);
|
|
return Acc;
|
|
}
|
|
// prettier-ignore
|
|
function FromMappedResult(R, T) {
|
|
return FromProperties(R.properties, T);
|
|
}
|
|
// prettier-ignore
|
|
export function ExtractFromMappedResult(R, T) {
|
|
const P = FromMappedResult(R, T);
|
|
return MappedResult(P);
|
|
}
|