Skip to content

Commit

Permalink
fix(compose2): fix type signature errors
Browse files Browse the repository at this point in the history
  • Loading branch information
TylorS authored and Andre Medeiros committed Apr 14, 2016
1 parent ce36269 commit 5c77ff9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ function invoke(f: Function, args: Array<any>) {
}
}

function compose2<T>(f1: (t: T) => T, f2: (t: T) => T): (t: T) => T {
return function composedFn(arg: T): T {
function compose2<T, U>(f1: (t: T) => any, f2: (t: T) => any): (t: T) => any {
return function composedFn(arg: T): any {
return f1(f2(arg));
};
}
Expand Down

0 comments on commit 5c77ff9

Please sign in to comment.