UNPKG

@lxdhub/common

Version:

Display, search and copy LXD-images using a web interface.

17 lines (16 loc) 554 B
/** * A factory which can transform a source entity * to a desintation entity */ export declare abstract class Factory<Desintation> { /** * Transforms one entity to a desination entity * @param source The source item which should be converted to a desination entity */ abstract entityToDto(source: any): Desintation; /** * Transforms multiple entities to desination entites * @param source The source items which should be converted to desination entites */ entitiesToDto(source: any[]): Desintation[]; }