diff --git a/types/ramda/index.d.ts b/types/ramda/index.d.ts index e3eda424ec..3ee2bd3dfa 100644 --- a/types/ramda/index.d.ts +++ b/types/ramda/index.d.ts @@ -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(thisObj: T, fn: (...args: any[]) => any): (...args: any[]) => any; + bind(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 diff --git a/types/ramda/ramda-tests.ts b/types/ramda/ramda-tests.ts index ff19276316..2d8cfb1e21 100644 --- a/types/ramda/ramda-tests.ts +++ b/types/ramda/ramda-tests.ts @@ -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); +};