Fix function.apply type definition

Thanks @DanielRosenwasser #fix 22600
This commit is contained in:
Adrien Gibrat 2018-03-21 22:49:19 +01:00
parent ced4c00522
commit 4f0a2e24e4

2
lib/lib.d.ts vendored
View File

@ -265,7 +265,7 @@ interface Function {
* @param thisArg The object to be used as the this object.
* @param argArray A set of arguments to be passed to the function.
*/
apply(this: Function, thisArg: any, argArray?: any): any;
apply(this: Function, thisArg: any, argArray?: Readonly<ArrayLike<any>>): any;
/**
* Calls a method of an object, substituting another object for the current object.