mapper-tsk
Version:
mapper tool to use with or without NodeTskeleton template project
7 lines (6 loc) • 335 B
TypeScript
import { IBuilderFunction } from "./IMappingProfile";
export interface 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;
}