Make this-type of bind's return explicit

This commit is contained in:
Nathan Shively-Sanders 2016-02-02 14:46:44 -08:00
parent d030889166
commit 675e0816d4

2
src/lib/core.d.ts vendored
View file

@ -232,7 +232,7 @@ interface Function {
* @param thisArg An object to which the this keyword can refer inside the new function.
* @param argArray A list of arguments to be passed to the new function.
*/
bind<T, U>(this: (this: T, ...argArray: any[]) => U, thisArg: T, ...argArray: any[]): (...argArray: any[]) => U;
bind<T, U>(this: (this: T, ...argArray: any[]) => U, thisArg: T, ...argArray: any[]): (this: void, ...argArray: any[]) => U;
bind(this: Function, thisArg: any, ...argArray: any[]): any;
prototype: any;