Skip to content

Commit

Permalink
added abstract declaration to map method
Browse files Browse the repository at this point in the history
  • Loading branch information
geclos committed May 20, 2019
1 parent b15ee5a commit 3107ae2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
13 changes: 0 additions & 13 deletions .babelrc

This file was deleted.

2 changes: 1 addition & 1 deletion src/Collection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default abstract class Collection<T extends Model> extends Base {
/**
* Alias for models.map
*/
map (callback: (model: T) => any): Array<any> {
map<P> (callback: (model: T) => P): Array<P> {
return this.models.map(callback)
}

Expand Down

0 comments on commit 3107ae2

Please sign in to comment.