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
26 lines
799 B
Plaintext
26 lines
799 B
Plaintext
import { MappedResult } from '../mapped/index.mjs';
|
|
import { Literal } from '../literal/index.mjs';
|
|
import { Extends } from './extends.mjs';
|
|
import { Clone } from '../clone/value.mjs';
|
|
// prettier-ignore
|
|
function FromPropertyKey(K, U, L, R, options) {
|
|
return {
|
|
[K]: Extends(Literal(K), U, L, R, Clone(options))
|
|
};
|
|
}
|
|
// prettier-ignore
|
|
function FromPropertyKeys(K, U, L, R, options) {
|
|
return K.reduce((Acc, LK) => {
|
|
return { ...Acc, ...FromPropertyKey(LK, U, L, R, options) };
|
|
}, {});
|
|
}
|
|
// prettier-ignore
|
|
function FromMappedKey(K, U, L, R, options) {
|
|
return FromPropertyKeys(K.keys, U, L, R, options);
|
|
}
|
|
// prettier-ignore
|
|
export function ExtendsFromMappedKey(T, U, L, R, options) {
|
|
const P = FromMappedKey(T, U, L, R, options);
|
|
return MappedResult(P);
|
|
}
|