@@ -297,25 +297,25 @@ declare const Function: FunctionConstructor;
297
297
298
298
interface CallableFunction extends Function {
299
299
/**
300
- * Calls the function, substituting the specified object for the this value of the function, and the specified array for the arguments of the function .
300
+ * Calls the function with the specified object as the this value and the elements of specified array as the arguments.
301
301
* @param thisArg The object to be used as the this object.
302
- * @param argArray A set of arguments to be passed to the function.
302
+ * @param args An array of argument values to be passed to the function.
303
303
*/
304
304
apply < T , R > ( this : ( this : T ) => R , thisArg : T ) : R ;
305
305
apply < T , A extends any [ ] , R > ( this : ( this : T , ...args : A ) => R , thisArg : T , args : A ) : R ;
306
306
307
307
/**
308
- * Calls a method of an object, substituting another object for the current object .
309
- * @param thisArg The object to be used as the current object.
310
- * @param argArray A list of arguments to be passed to the method .
308
+ * Calls the function with the specified object as the this value and the specified rest arguments as the arguments .
309
+ * @param thisArg The object to be used as the this object.
310
+ * @param args Argument values to be passed to the function .
311
311
*/
312
312
call < T , A extends any [ ] , R > ( this : ( this : T , ...args : A ) => R , thisArg : T , ...args : A ) : R ;
313
313
314
314
/**
315
315
* For a given function, creates a bound function that has the same body as the original function.
316
316
* The this object of the bound function is associated with the specified object, and has the specified initial parameters.
317
- * @param thisArg An object to which the this keyword can refer inside the new function .
318
- * @param argArray A list of arguments to be passed to the new function.
317
+ * @param thisArg The object to be used as the this object .
318
+ * @param args Arguments to bind to the parameters of the function.
319
319
*/
320
320
bind < T , A extends any [ ] , R > ( this : ( this : T , ...args : A ) => R , thisArg : T ) : ( ...args : A ) => R ;
321
321
bind < T , A0 , A extends any [ ] , R > ( this : ( this : T , arg0 : A0 , ...args : A ) => R , thisArg : T , arg0 : A0 ) : ( ...args : A ) => R ;
@@ -326,25 +326,25 @@ interface CallableFunction extends Function {
326
326
327
327
interface NewableFunction extends Function {
328
328
/**
329
- * Calls the function, substituting the specified object for the this value of the function, and the specified array for the arguments of the function .
329
+ * Calls the function with the specified object as the this value and the elements of specified array as the arguments.
330
330
* @param thisArg The object to be used as the this object.
331
- * @param argArray A set of arguments to be passed to the function.
331
+ * @param args An array of argument values to be passed to the function.
332
332
*/
333
- apply < R > ( this : new ( ) => R , thisArg : any ) : R ;
334
- apply < A extends any [ ] , R > ( this : new ( ...args : A ) => R , thisArg : any , args : A ) : R ;
333
+ apply < T > ( this : new ( ) => T , thisArg : T ) : void ;
334
+ apply < T , A extends any [ ] > ( this : new ( ...args : A ) => T , thisArg : T , args : A ) : void ;
335
335
336
336
/**
337
- * Calls a method of an object, substituting another object for the current object .
338
- * @param thisArg The object to be used as the current object.
339
- * @param argArray A list of arguments to be passed to the method .
337
+ * Calls the function with the specified object as the this value and the specified rest arguments as the arguments .
338
+ * @param thisArg The object to be used as the this object.
339
+ * @param args Argument values to be passed to the function .
340
340
*/
341
- call < A extends any [ ] , R > ( this : new ( ...args : A ) => R , thisArg : any , ...args : A ) : R ;
341
+ call < T , A extends any [ ] > ( this : new ( ...args : A ) => T , thisArg : T , ...args : A ) : void ;
342
342
343
343
/**
344
344
* For a given function, creates a bound function that has the same body as the original function.
345
345
* The this object of the bound function is associated with the specified object, and has the specified initial parameters.
346
- * @param thisArg An object to which the this keyword can refer inside the new function .
347
- * @param argArray A list of arguments to be passed to the new function.
346
+ * @param thisArg The object to be used as the this object .
347
+ * @param args Arguments to bind to the parameters of the function.
348
348
*/
349
349
bind < A extends any [ ] , R > ( this : new ( ...args : A ) => R , thisArg : any ) : new ( ...args : A ) => R ;
350
350
bind < A0 , A extends any [ ] , R > ( this : new ( arg0 : A0 , ...args : A ) => R , thisArg : any , arg0 : A0 ) : new ( ...args : A ) => R ;
0 commit comments