Make this-type of bind's return explicit
This commit is contained in:
parent
d030889166
commit
675e0816d4
1 changed files with 1 additions and 1 deletions
2
src/lib/core.d.ts
vendored
2
src/lib/core.d.ts
vendored
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue