From e67ec88e0d383c5b1a9110dc552349c326583ec5 Mon Sep 17 00:00:00 2001 From: ashwinr Date: Thu, 3 Oct 2013 15:35:44 -0400 Subject: [PATCH] Update bind method for underscore.d.ts Bind on a parameter. This fixes typing errors caused by binding functions returned by other underscore methods such as partial/memoize/throttle/debounce etc. --- underscore/underscore.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/underscore/underscore.d.ts b/underscore/underscore.d.ts index cd7a2867e..fb4d87e17 100644 --- a/underscore/underscore.d.ts +++ b/underscore/underscore.d.ts @@ -861,7 +861,7 @@ declare module _ { * @return `fn` with `this` bound to `object`. **/ export function bind( - func: (...as: any[]) => any, + func: Function, context: any, ...arguments: any[]): () => any;