amisa-paths
Version:
nothing special
22 lines (21 loc) • 778 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Paths = void 0;
const Accounting_1 = require("./Accounting");
const BaseCode_1 = require("./BaseCode");
class Paths {
constructor() {
this.historiesController = 'histories';
this.Accounting = new Accounting_1.Accounting();
this.BaseCode = new BaseCode_1.BaseCode();
}
}
exports.Paths = Paths;
Paths.getValue = (paths, p1, p2) => {
const pp = paths[p1];
return pp[p2];
};
// type KeysOfType<T, U> = { [P in keyof T]: T[P] extends U ? P : never }[keyof T];
// type PickByType<T, U> = Pick<T, KeysOfType<T, U>>;
// const a = <P1 extends keyof PickByType<IPaths, Text>, P extends IPaths[P1], P2 extends keyof P>(f: P1, g: P2) => {
// }