Merge pull request #22775 from adriengibrat/FixFunctionApplyDefinition

Fix function.apply type definition
This commit is contained in:
Mohamed Hegazy 2018-03-26 16:34:24 -07:00 committed by GitHub
commit 36b49c06cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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 thisArg The object to be used as the this object.
* @param argArray A set of arguments to be passed to the function. * @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. * Calls a method of an object, substituting another object for the current object.