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
21 lines
759 B
Plaintext
21 lines
759 B
Plaintext
import { MappedResult } from '../mapped/index.mjs';
|
|
import { IndexPropertyKeys } from './indexed-property-keys.mjs';
|
|
import { Index } from './index.mjs';
|
|
// prettier-ignore
|
|
function FromProperties(type, properties, options) {
|
|
const result = {};
|
|
for (const K2 of Object.getOwnPropertyNames(properties)) {
|
|
result[K2] = Index(type, IndexPropertyKeys(properties[K2]), options);
|
|
}
|
|
return result;
|
|
}
|
|
// prettier-ignore
|
|
function FromMappedResult(type, mappedResult, options) {
|
|
return FromProperties(type, mappedResult.properties, options);
|
|
}
|
|
// prettier-ignore
|
|
export function IndexFromMappedResult(type, mappedResult, options) {
|
|
const properties = FromMappedResult(type, mappedResult, options);
|
|
return MappedResult(properties);
|
|
}
|