Update bind method for underscore.d.ts

Bind on a <Function> parameter. This fixes typing errors caused by binding functions returned by other underscore methods such as partial/memoize/throttle/debounce etc.
This commit is contained in:
ashwinr
2013-10-03 15:35:44 -04:00
parent a7e3a4fa75
commit e67ec88e0d
+1 -1
View File
@@ -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;