mapper-tsk
Version:
mapper tool to use with or without NodeTskeleton template project
13 lines (12 loc) • 546 B
TypeScript
import { IBuilderFunction } from "./IMappingProfile";
import { IMap } from "./IMap";
declare class Mapper implements IMap {
mapObject<S, D>(source: S, destination: D, profile?: Record<string, string | IBuilderFunction>): D;
mapArray<S, D>(source: S[], activator: () => D, profile?: Record<string, string | IBuilderFunction>): D[];
activator<D>(type: new () => D): D;
private getChainingDeepSourceObjectValue;
private createDeepChainingDestinationObject;
}
declare const mapper: Mapper;
export { IMap };
export default mapper;