File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1965,7 +1965,7 @@ export function unapply<T>(fn: (args: readonly any[]) => T): (...args: readonly
1965
1965
* Wraps a function of any arity (including nullary) in a function that accepts exactly 1 parameter.
1966
1966
* Any extraneous parameters will not be passed to the supplied function.
1967
1967
*/
1968
- export function unary < T > ( fn : ( a : T , ...args : readonly any [ ] ) => any ) : ( a : T ) => any ;
1968
+ export function unary < T , R > ( fn : ( a : T , ...args : readonly any [ ] ) => R ) : ( a : T ) => R ;
1969
1969
1970
1970
/**
1971
1971
* Returns a function of arity n from a (manually) curried function.
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import * as R from 'ramda';
11
11
return [ a , b , c ] ;
12
12
}
13
13
14
- const u1 : ( a : any ) => any = R . unary ( takesOneArg ) ;
15
- const u2 : ( a : any ) => any = R . unary ( takesTwoArgs ) ;
16
- const u3 : ( a : any ) => any = R . unary ( takesThreeArgs ) ;
14
+ const u1 : ( a : number ) => number [ ] = R . unary ( takesOneArg ) ;
15
+ const u2 : ( a : number ) => number [ ] = R . unary ( takesTwoArgs ) ;
16
+ const u3 : ( a : number ) => number [ ] = R . unary ( takesThreeArgs ) ;
17
17
} ;
You can’t perform that action at this time.
0 commit comments