md-curcuma
Version:
A Typescript library for transporting and converting markdown and other data.
27 lines (26 loc) • 847 B
TypeScript
export interface Mapper_Properties {
source: any;
target: any;
source_property_name: string;
target_poperty_name: string;
source_value: any;
target_value: any;
}
export interface Mapper_Task_Interface {
perform(mapping_properties: Mapper_Properties): any;
}
export interface Mapper_Item_Interface {
source_property_name: any;
target_poperty_name: any;
}
export interface Mapper_Interface {
mapping_items: Mapper_Item_Interface[];
task?: Mapper_Task_Interface;
}
export declare class Mapper {
protected mappings: Mapper_Interface[];
addMapping(mapping: Mapper_Interface): void;
addMappings(mappings: Mapper_Interface[]): void;
do_mappings(source: any, target: any): void;
do_mapping(mapping_item: Mapper_Item_Interface, source: any, target: any, task: Mapper_Task_Interface): void;
}