Skip to content

Commit

Permalink
fix: wrong return type when using Morphism.map(type)
Browse files Browse the repository at this point in the history
  • Loading branch information
emyann committed Mar 17, 2019
1 parent d2d1af5 commit fb13c4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MorphismRegistry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export interface IMorphismRegistry {
* @param {Object} data Input data to transform
*
*/
map<Target>(type: Target): Mapper<Schema, Target>;
map<Target>(type: Constructable<Target>): Mapper<Schema, Target>;
map<Target, Source>(type: Constructable<Target>, data: Source[]): Target[];
map<Target, Source>(type: Constructable<Target>, data: Source): Target;
/**
Expand Down

0 comments on commit fb13c4e

Please sign in to comment.