Skip to content

Commit a5dece3

Browse files
committed
Update declarations
1 parent 1e3625c commit a5dece3

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

src/lib/es5.d.ts

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -297,25 +297,25 @@ declare const Function: FunctionConstructor;
297297

298298
interface CallableFunction extends Function {
299299
/**
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.
301301
* @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.
303303
*/
304304
apply<T, R>(this: (this: T) => R, thisArg: T): R;
305305
apply<T, A extends any[], R>(this: (this: T, ...args: A) => R, thisArg: T, args: A): R;
306306

307307
/**
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.
311311
*/
312312
call<T, A extends any[], R>(this: (this: T, ...args: A) => R, thisArg: T, ...args: A): R;
313313

314314
/**
315315
* For a given function, creates a bound function that has the same body as the original function.
316316
* 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.
319319
*/
320320
bind<T, A extends any[], R>(this: (this: T, ...args: A) => R, thisArg: T): (...args: A) => R;
321321
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 {
326326

327327
interface NewableFunction extends Function {
328328
/**
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.
330330
* @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.
332332
*/
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;
335335

336336
/**
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.
340340
*/
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;
342342

343343
/**
344344
* For a given function, creates a bound function that has the same body as the original function.
345345
* 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.
348348
*/
349349
bind<A extends any[], R>(this: new (...args: A) => R, thisArg: any): new (...args: A) => R;
350350
bind<A0, A extends any[], R>(this: new (arg0: A0, ...args: A) => R, thisArg: any, arg0: A0): new (...args: A) => R;

0 commit comments

Comments
 (0)