mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-23 04:47:24 +08:00
Merge pull request #25744 from deptno/ramda/bind
types/ramda fix bind definition & test code
This commit is contained in:
2
types/ramda/index.d.ts
vendored
2
types/ramda/index.d.ts
vendored
@@ -313,7 +313,7 @@ declare namespace R {
|
||||
* Creates a function that is bound to a context. Note: R.bind does not provide the additional argument-binding
|
||||
* capabilities of Function.prototype.bind.
|
||||
*/
|
||||
bind<T>(thisObj: T, fn: (...args: any[]) => any): (...args: any[]) => any;
|
||||
bind<T>(fn: (...args: any[]) => any, thisObj: T): (...args: any[]) => any;
|
||||
|
||||
/**
|
||||
* A function wrapping calls to the two functions in an && operation, returning the result of the first function
|
||||
|
||||
@@ -2453,3 +2453,7 @@ class Why {
|
||||
R.intersection([1, 2, 3], [2, 3, 3, 4]); // => [2, 3]
|
||||
R.intersection([1, 2, 3])([2, 3, 3, 4]); // => [2, 3]
|
||||
};
|
||||
|
||||
() => {
|
||||
R.bind(console.log, console);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user