From c6fe757c0d22d348815ecc81097c1237c512b7c2 Mon Sep 17 00:00:00 2001 From: Leonard Thieu Date: Mon, 22 Oct 2018 12:28:30 -0400 Subject: [PATCH] [jquery] Fix `TContext` declaration of `jQuery.proxy` on wrong value's type. (#29930) * [jquery] Match parameter names to documentation more closely. * [jquery] Add documentation to parameters. * [jquery] Fix `TContext` declaration on wrong value's type. Declaring `this` as `TContext` on the input function ensures that it can handle having its context changed to `TContext`. Declaring `this` on the output function is not important because the function will be already defined. It can also get in the way when passing a callback to a function whose callback parameter has `this` declared. * [jquery] Drop constraint from `TContext`. It's not really necessary and it is possible to pass primitives as the context. --- types/jquery/JQueryStatic.d.ts | 1445 +++++++++++++++++++++----------- types/jquery/jquery-tests.ts | 670 ++++++++++----- 2 files changed, 1392 insertions(+), 723 deletions(-) diff --git a/types/jquery/JQueryStatic.d.ts b/types/jquery/JQueryStatic.d.ts index 64cbe6f47b..20d3a9e8c5 100644 --- a/types/jquery/JQueryStatic.d.ts +++ b/types/jquery/JQueryStatic.d.ts @@ -1788,8 +1788,9 @@ test(); /** * Finds the elements of an array which satisfy a filter function. The original array is not affected. * @param array The array-like object to search through. - * @param fn The function to process each item against. The first argument to the function is the item, and the - * second argument is the index. The function should return a Boolean value. this will be the global window object. + * @param funсtion The function to process each item against. The first argument to the function is the item, and the + * second argument is the index. The function should return a Boolean value. `this` will be the global + * window object. * @param invert If "invert" is false, or not provided, then the function returns an array consisting of all elements * for which "callback" returns true. If "invert" is true, then the function returns an array * consisting of all elements for which "callback" returns false. @@ -1855,7 +1856,7 @@ $.grep( [ 0, 1, 2 ], function( n, i ) { ``` */ grep(array: ArrayLike, - fn: (elementOfArray: T, indexInArray: number) => boolean, + funсtion: (elementOfArray: T, indexInArray: number) => boolean, invert?: boolean): T[]; /** * Determine whether an element has any jQuery data associated with it. @@ -2759,8 +2760,8 @@ $.post( "test.php" ); // region proxy // #region proxy - // region (fn, null | undefined) - // #region (fn, null | undefined) + // region (funсtion, null | undefined) + // #region (funсtion, null | undefined) // region 0 to 7 additional arguments // #region 0 to 7 additional arguments @@ -2770,97 +2771,125 @@ $.post( "test.php" ); /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. + * @param d An argument to be passed to the function referenced in the `function` argument. + * @param e An argument to be passed to the function referenced in the `function` argument. + * @param f An argument to be passed to the function referenced in the `function` argument. + * @param g An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.9 * @deprecated ​ Deprecated since 3.3. Use \`{@link Function#bind }\`. */ proxy(fn: (a: A, b: B, c: C, d: D, e: E, f: F, g: G) => TReturn, + A, B, C, D, E, F, G>(funсtion: (a: A, b: B, c: C, d: D, e: E, f: F, g: G) => TReturn, context: null | undefined, a: A, b: B, c: C, d: D, e: E, f: F, g: G): () => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. + * @param d An argument to be passed to the function referenced in the `function` argument. + * @param e An argument to be passed to the function referenced in the `function` argument. + * @param f An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.9 * @deprecated ​ Deprecated since 3.3. Use \`{@link Function#bind }\`. */ proxy(fn: (a: A, b: B, c: C, d: D, e: E, f: F) => TReturn, + A, B, C, D, E, F>(funсtion: (a: A, b: B, c: C, d: D, e: E, f: F) => TReturn, context: null | undefined, a: A, b: B, c: C, d: D, e: E, f: F): () => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. + * @param d An argument to be passed to the function referenced in the `function` argument. + * @param e An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.9 * @deprecated ​ Deprecated since 3.3. Use \`{@link Function#bind }\`. */ proxy(fn: (a: A, b: B, c: C, d: D, e: E) => TReturn, + A, B, C, D, E>(funсtion: (a: A, b: B, c: C, d: D, e: E) => TReturn, context: null | undefined, a: A, b: B, c: C, d: D, e: E): () => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. + * @param d An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.9 * @deprecated ​ Deprecated since 3.3. Use \`{@link Function#bind }\`. */ proxy(fn: (a: A, b: B, c: C, d: D) => TReturn, + A, B, C, D>(funсtion: (a: A, b: B, c: C, d: D) => TReturn, context: null | undefined, a: A, b: B, c: C, d: D): () => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.9 * @deprecated ​ Deprecated since 3.3. Use \`{@link Function#bind }\`. */ proxy(fn: (a: A, b: B, c: C) => TReturn, + A, B, C>(funсtion: (a: A, b: B, c: C) => TReturn, context: null | undefined, a: A, b: B, c: C): () => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.9 * @deprecated ​ Deprecated since 3.3. Use \`{@link Function#bind }\`. */ proxy(fn: (a: A, b: B) => TReturn, + A, B>(funсtion: (a: A, b: B) => TReturn, context: null | undefined, a: A, b: B): () => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.9 * @deprecated ​ Deprecated since 3.3. Use \`{@link Function#bind }\`. */ proxy(fn: (a: A) => TReturn, + A>(funсtion: (a: A) => TReturn, context: null | undefined, a: A): () => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.9 * @deprecated ​ Deprecated since 3.3. Use \`{@link Function#bind }\`. */ - proxy(fn: () => TReturn, + proxy(funсtion: () => TReturn, context: null | undefined): () => TReturn; // #endregion @@ -2870,112 +2899,140 @@ $.post( "test.php" ); /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. + * @param d An argument to be passed to the function referenced in the `function` argument. + * @param e An argument to be passed to the function referenced in the `function` argument. + * @param f An argument to be passed to the function referenced in the `function` argument. + * @param g An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.9 * @deprecated ​ Deprecated since 3.3. Use \`{@link Function#bind }\`. */ proxy(fn: (a: A, b: B, c: C, d: D, e: E, f: F, g: G, - t: T) => TReturn, + T>(funсtion: (a: A, b: B, c: C, d: D, e: E, f: F, g: G, + t: T) => TReturn, context: null | undefined, a: A, b: B, c: C, d: D, e: E, f: F, g: G): (t: T) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. + * @param d An argument to be passed to the function referenced in the `function` argument. + * @param e An argument to be passed to the function referenced in the `function` argument. + * @param f An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.9 * @deprecated ​ Deprecated since 3.3. Use \`{@link Function#bind }\`. */ proxy(fn: (a: A, b: B, c: C, d: D, e: E, f: F, - t: T) => TReturn, + T>(funсtion: (a: A, b: B, c: C, d: D, e: E, f: F, + t: T) => TReturn, context: null | undefined, a: A, b: B, c: C, d: D, e: E, f: F): (t: T) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. + * @param d An argument to be passed to the function referenced in the `function` argument. + * @param e An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.9 * @deprecated ​ Deprecated since 3.3. Use \`{@link Function#bind }\`. */ proxy(fn: (a: A, b: B, c: C, d: D, e: E, - t: T) => TReturn, + T>(funсtion: (a: A, b: B, c: C, d: D, e: E, + t: T) => TReturn, context: null | undefined, a: A, b: B, c: C, d: D, e: E): (t: T) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. + * @param d An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.9 * @deprecated ​ Deprecated since 3.3. Use \`{@link Function#bind }\`. */ proxy(fn: (a: A, b: B, c: C, d: D, - t: T) => TReturn, + T>(funсtion: (a: A, b: B, c: C, d: D, + t: T) => TReturn, context: null | undefined, a: A, b: B, c: C, d: D): (t: T) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.9 * @deprecated ​ Deprecated since 3.3. Use \`{@link Function#bind }\`. */ proxy(fn: (a: A, b: B, c: C, - t: T) => TReturn, + T>(funсtion: (a: A, b: B, c: C, + t: T) => TReturn, context: null | undefined, a: A, b: B, c: C): (t: T) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.9 * @deprecated ​ Deprecated since 3.3. Use \`{@link Function#bind }\`. */ proxy(fn: (a: A, b: B, - t: T) => TReturn, + T>(funсtion: (a: A, b: B, + t: T) => TReturn, context: null | undefined, a: A, b: B): (t: T) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.9 * @deprecated ​ Deprecated since 3.3. Use \`{@link Function#bind }\`. */ proxy(fn: (a: A, - t: T) => TReturn, + T>(funсtion: (a: A, + t: T) => TReturn, context: null | undefined, a: A): (t: T) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.9 * @deprecated ​ Deprecated since 3.3. Use \`{@link Function#bind }\`. */ proxy(fn: (t: T) => TReturn, + T>(funсtion: (t: T) => TReturn, context: null | undefined): (t: T) => TReturn; // #endregion @@ -2985,112 +3042,140 @@ $.post( "test.php" ); /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. + * @param d An argument to be passed to the function referenced in the `function` argument. + * @param e An argument to be passed to the function referenced in the `function` argument. + * @param f An argument to be passed to the function referenced in the `function` argument. + * @param g An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.9 * @deprecated ​ Deprecated since 3.3. Use \`{@link Function#bind }\`. */ proxy(fn: (a: A, b: B, c: C, d: D, e: E, f: F, g: G, - t: T, u: U) => TReturn, + T, U>(funсtion: (a: A, b: B, c: C, d: D, e: E, f: F, g: G, + t: T, u: U) => TReturn, context: null | undefined, a: A, b: B, c: C, d: D, e: E, f: F, g: G): (t: T, u: U) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. + * @param d An argument to be passed to the function referenced in the `function` argument. + * @param e An argument to be passed to the function referenced in the `function` argument. + * @param f An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.9 * @deprecated ​ Deprecated since 3.3. Use \`{@link Function#bind }\`. */ proxy(fn: (a: A, b: B, c: C, d: D, e: E, f: F, - t: T, u: U) => TReturn, + T, U>(funсtion: (a: A, b: B, c: C, d: D, e: E, f: F, + t: T, u: U) => TReturn, context: null | undefined, a: A, b: B, c: C, d: D, e: E, f: F): (t: T, u: U) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. + * @param d An argument to be passed to the function referenced in the `function` argument. + * @param e An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.9 * @deprecated ​ Deprecated since 3.3. Use \`{@link Function#bind }\`. */ proxy(fn: (a: A, b: B, c: C, d: D, e: E, - t: T, u: U) => TReturn, + T, U>(funсtion: (a: A, b: B, c: C, d: D, e: E, + t: T, u: U) => TReturn, context: null | undefined, a: A, b: B, c: C, d: D, e: E): (t: T, u: U) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. + * @param d An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.9 * @deprecated ​ Deprecated since 3.3. Use \`{@link Function#bind }\`. */ proxy(fn: (a: A, b: B, c: C, d: D, - t: T, u: U) => TReturn, + T, U>(funсtion: (a: A, b: B, c: C, d: D, + t: T, u: U) => TReturn, context: null | undefined, a: A, b: B, c: C, d: D): (t: T, u: U) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.9 * @deprecated ​ Deprecated since 3.3. Use \`{@link Function#bind }\`. */ proxy(fn: (a: A, b: B, c: C, - t: T, u: U) => TReturn, + T, U>(funсtion: (a: A, b: B, c: C, + t: T, u: U) => TReturn, context: null | undefined, a: A, b: B, c: C): (t: T, u: U) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.9 * @deprecated ​ Deprecated since 3.3. Use \`{@link Function#bind }\`. */ proxy(fn: (a: A, b: B, - t: T, u: U) => TReturn, + T, U>(funсtion: (a: A, b: B, + t: T, u: U) => TReturn, context: null | undefined, a: A, b: B): (t: T, u: U) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.9 * @deprecated ​ Deprecated since 3.3. Use \`{@link Function#bind }\`. */ proxy(fn: (a: A, - t: T, u: U) => TReturn, + T, U>(funсtion: (a: A, + t: T, u: U) => TReturn, context: null | undefined, a: A): (t: T, u: U) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.9 * @deprecated ​ Deprecated since 3.3. Use \`{@link Function#bind }\`. */ proxy(fn: (t: T, u: U) => TReturn, + T, U>(funсtion: (t: T, u: U) => TReturn, context: null | undefined): (t: T, u: U) => TReturn; // #endregion @@ -3100,112 +3185,140 @@ $.post( "test.php" ); /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. + * @param d An argument to be passed to the function referenced in the `function` argument. + * @param e An argument to be passed to the function referenced in the `function` argument. + * @param f An argument to be passed to the function referenced in the `function` argument. + * @param g An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.9 * @deprecated ​ Deprecated since 3.3. Use \`{@link Function#bind }\`. */ proxy(fn: (a: A, b: B, c: C, d: D, e: E, f: F, g: G, - t: T, u: U, v: V) => TReturn, + T, U, V>(funсtion: (a: A, b: B, c: C, d: D, e: E, f: F, g: G, + t: T, u: U, v: V) => TReturn, context: null | undefined, a: A, b: B, c: C, d: D, e: E, f: F, g: G): (t: T, u: U, v: V) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. + * @param d An argument to be passed to the function referenced in the `function` argument. + * @param e An argument to be passed to the function referenced in the `function` argument. + * @param f An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.9 * @deprecated ​ Deprecated since 3.3. Use \`{@link Function#bind }\`. */ proxy(fn: (a: A, b: B, c: C, d: D, e: E, f: F, - t: T, u: U, v: V) => TReturn, + T, U, V>(funсtion: (a: A, b: B, c: C, d: D, e: E, f: F, + t: T, u: U, v: V) => TReturn, context: null | undefined, a: A, b: B, c: C, d: D, e: E, f: F): (t: T, u: U, v: V) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. + * @param d An argument to be passed to the function referenced in the `function` argument. + * @param e An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.9 * @deprecated ​ Deprecated since 3.3. Use \`{@link Function#bind }\`. */ proxy(fn: (a: A, b: B, c: C, d: D, e: E, - t: T, u: U, v: V) => TReturn, + T, U, V>(funсtion: (a: A, b: B, c: C, d: D, e: E, + t: T, u: U, v: V) => TReturn, context: null | undefined, a: A, b: B, c: C, d: D, e: E): (t: T, u: U, v: V) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. + * @param d An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.9 * @deprecated ​ Deprecated since 3.3. Use \`{@link Function#bind }\`. */ proxy(fn: (a: A, b: B, c: C, d: D, - t: T, u: U, v: V) => TReturn, + T, U, V>(funсtion: (a: A, b: B, c: C, d: D, + t: T, u: U, v: V) => TReturn, context: null | undefined, a: A, b: B, c: C, d: D): (t: T, u: U, v: V) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.9 * @deprecated ​ Deprecated since 3.3. Use \`{@link Function#bind }\`. */ proxy(fn: (a: A, b: B, c: C, - t: T, u: U, v: V) => TReturn, + T, U, V>(funсtion: (a: A, b: B, c: C, + t: T, u: U, v: V) => TReturn, context: null | undefined, a: A, b: B, c: C): (t: T, u: U, v: V) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.9 * @deprecated ​ Deprecated since 3.3. Use \`{@link Function#bind }\`. */ proxy(fn: (a: A, b: B, - t: T, u: U, v: V) => TReturn, + T, U, V>(funсtion: (a: A, b: B, + t: T, u: U, v: V) => TReturn, context: null | undefined, a: A, b: B): (t: T, u: U, v: V) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.9 * @deprecated ​ Deprecated since 3.3. Use \`{@link Function#bind }\`. */ proxy(fn: (a: A, - t: T, u: U, v: V) => TReturn, + T, U, V>(funсtion: (a: A, + t: T, u: U, v: V) => TReturn, context: null | undefined, a: A): (t: T, u: U, v: V) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.9 * @deprecated ​ Deprecated since 3.3. Use \`{@link Function#bind }\`. */ proxy(fn: (t: T, u: U, v: V) => TReturn, + T, U, V>(funсtion: (t: T, u: U, v: V) => TReturn, context: null | undefined): (t: T, u: U, v: V) => TReturn; // #endregion @@ -3215,112 +3328,140 @@ $.post( "test.php" ); /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. + * @param d An argument to be passed to the function referenced in the `function` argument. + * @param e An argument to be passed to the function referenced in the `function` argument. + * @param f An argument to be passed to the function referenced in the `function` argument. + * @param g An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.9 * @deprecated ​ Deprecated since 3.3. Use \`{@link Function#bind }\`. */ proxy(fn: (a: A, b: B, c: C, d: D, e: E, f: F, g: G, - t: T, u: U, v: V, w: W) => TReturn, + T, U, V, W>(funсtion: (a: A, b: B, c: C, d: D, e: E, f: F, g: G, + t: T, u: U, v: V, w: W) => TReturn, context: null | undefined, a: A, b: B, c: C, d: D, e: E, f: F, g: G): (t: T, u: U, v: V, w: W) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. + * @param d An argument to be passed to the function referenced in the `function` argument. + * @param e An argument to be passed to the function referenced in the `function` argument. + * @param f An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.9 * @deprecated ​ Deprecated since 3.3. Use \`{@link Function#bind }\`. */ proxy(fn: (a: A, b: B, c: C, d: D, e: E, f: F, - t: T, u: U, v: V, w: W) => TReturn, + T, U, V, W>(funсtion: (a: A, b: B, c: C, d: D, e: E, f: F, + t: T, u: U, v: V, w: W) => TReturn, context: null | undefined, a: A, b: B, c: C, d: D, e: E, f: F): (t: T, u: U, v: V, w: W) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. + * @param d An argument to be passed to the function referenced in the `function` argument. + * @param e An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.9 * @deprecated ​ Deprecated since 3.3. Use \`{@link Function#bind }\`. */ proxy(fn: (a: A, b: B, c: C, d: D, e: E, - t: T, u: U, v: V, w: W) => TReturn, + T, U, V, W>(funсtion: (a: A, b: B, c: C, d: D, e: E, + t: T, u: U, v: V, w: W) => TReturn, context: null | undefined, a: A, b: B, c: C, d: D, e: E): (t: T, u: U, v: V, w: W) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. + * @param d An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.9 * @deprecated ​ Deprecated since 3.3. Use \`{@link Function#bind }\`. */ proxy(fn: (a: A, b: B, c: C, d: D, - t: T, u: U, v: V, w: W) => TReturn, + T, U, V, W>(funсtion: (a: A, b: B, c: C, d: D, + t: T, u: U, v: V, w: W) => TReturn, context: null | undefined, a: A, b: B, c: C, d: D): (t: T, u: U, v: V, w: W) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.9 * @deprecated ​ Deprecated since 3.3. Use \`{@link Function#bind }\`. */ proxy(fn: (a: A, b: B, c: C, - t: T, u: U, v: V, w: W) => TReturn, + T, U, V, W>(funсtion: (a: A, b: B, c: C, + t: T, u: U, v: V, w: W) => TReturn, context: null | undefined, a: A, b: B, c: C): (t: T, u: U, v: V, w: W) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.9 * @deprecated ​ Deprecated since 3.3. Use \`{@link Function#bind }\`. */ proxy(fn: (a: A, b: B, - t: T, u: U, v: V, w: W) => TReturn, + T, U, V, W>(funсtion: (a: A, b: B, + t: T, u: U, v: V, w: W) => TReturn, context: null | undefined, a: A, b: B): (t: T, u: U, v: V, w: W) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.9 * @deprecated ​ Deprecated since 3.3. Use \`{@link Function#bind }\`. */ proxy(fn: (a: A, - t: T, u: U, v: V, w: W) => TReturn, + T, U, V, W>(funсtion: (a: A, + t: T, u: U, v: V, w: W) => TReturn, context: null | undefined, a: A): (t: T, u: U, v: V, w: W) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.9 * @deprecated ​ Deprecated since 3.3. Use \`{@link Function#bind }\`. */ proxy(fn: (t: T, u: U, v: V, w: W) => TReturn, + T, U, V, W>(funсtion: (t: T, u: U, v: V, w: W) => TReturn, context: null | undefined): (t: T, u: U, v: V, w: W) => TReturn; // #endregion @@ -3330,112 +3471,140 @@ $.post( "test.php" ); /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. + * @param d An argument to be passed to the function referenced in the `function` argument. + * @param e An argument to be passed to the function referenced in the `function` argument. + * @param f An argument to be passed to the function referenced in the `function` argument. + * @param g An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.9 * @deprecated ​ Deprecated since 3.3. Use \`{@link Function#bind }\`. */ proxy(fn: (a: A, b: B, c: C, d: D, e: E, f: F, g: G, - t: T, u: U, v: V, w: W, x: X) => TReturn, + T, U, V, W, X>(funсtion: (a: A, b: B, c: C, d: D, e: E, f: F, g: G, + t: T, u: U, v: V, w: W, x: X) => TReturn, context: null | undefined, a: A, b: B, c: C, d: D, e: E, f: F, g: G): (t: T, u: U, v: V, w: W, x: X) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. + * @param d An argument to be passed to the function referenced in the `function` argument. + * @param e An argument to be passed to the function referenced in the `function` argument. + * @param f An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.9 * @deprecated ​ Deprecated since 3.3. Use \`{@link Function#bind }\`. */ proxy(fn: (a: A, b: B, c: C, d: D, e: E, f: F, - t: T, u: U, v: V, w: W, x: X) => TReturn, + T, U, V, W, X>(funсtion: (a: A, b: B, c: C, d: D, e: E, f: F, + t: T, u: U, v: V, w: W, x: X) => TReturn, context: null | undefined, a: A, b: B, c: C, d: D, e: E, f: F): (t: T, u: U, v: V, w: W, x: X) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. + * @param d An argument to be passed to the function referenced in the `function` argument. + * @param e An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.9 * @deprecated ​ Deprecated since 3.3. Use \`{@link Function#bind }\`. */ proxy(fn: (a: A, b: B, c: C, d: D, e: E, - t: T, u: U, v: V, w: W, x: X) => TReturn, + T, U, V, W, X>(funсtion: (a: A, b: B, c: C, d: D, e: E, + t: T, u: U, v: V, w: W, x: X) => TReturn, context: null | undefined, a: A, b: B, c: C, d: D, e: E): (t: T, u: U, v: V, w: W, x: X) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. + * @param d An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.9 * @deprecated ​ Deprecated since 3.3. Use \`{@link Function#bind }\`. */ proxy(fn: (a: A, b: B, c: C, d: D, - t: T, u: U, v: V, w: W, x: X) => TReturn, + T, U, V, W, X>(funсtion: (a: A, b: B, c: C, d: D, + t: T, u: U, v: V, w: W, x: X) => TReturn, context: null | undefined, a: A, b: B, c: C, d: D): (t: T, u: U, v: V, w: W, x: X) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.9 * @deprecated ​ Deprecated since 3.3. Use \`{@link Function#bind }\`. */ proxy(fn: (a: A, b: B, c: C, - t: T, u: U, v: V, w: W, x: X) => TReturn, + T, U, V, W, X>(funсtion: (a: A, b: B, c: C, + t: T, u: U, v: V, w: W, x: X) => TReturn, context: null | undefined, a: A, b: B, c: C): (t: T, u: U, v: V, w: W, x: X) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.9 * @deprecated ​ Deprecated since 3.3. Use \`{@link Function#bind }\`. */ proxy(fn: (a: A, b: B, - t: T, u: U, v: V, w: W, x: X) => TReturn, + T, U, V, W, X>(funсtion: (a: A, b: B, + t: T, u: U, v: V, w: W, x: X) => TReturn, context: null | undefined, a: A, b: B): (t: T, u: U, v: V, w: W, x: X) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.9 * @deprecated ​ Deprecated since 3.3. Use \`{@link Function#bind }\`. */ proxy(fn: (a: A, - t: T, u: U, v: V, w: W, x: X) => TReturn, + T, U, V, W, X>(funсtion: (a: A, + t: T, u: U, v: V, w: W, x: X) => TReturn, context: null | undefined, a: A): (t: T, u: U, v: V, w: W, x: X) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.9 * @deprecated ​ Deprecated since 3.3. Use \`{@link Function#bind }\`. */ proxy(fn: (t: T, u: U, v: V, w: W, x: X) => TReturn, + T, U, V, W, X>(funсtion: (t: T, u: U, v: V, w: W, x: X) => TReturn, context: null | undefined): (t: T, u: U, v: V, w: W, x: X) => TReturn; // #endregion @@ -3445,112 +3614,140 @@ $.post( "test.php" ); /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. + * @param d An argument to be passed to the function referenced in the `function` argument. + * @param e An argument to be passed to the function referenced in the `function` argument. + * @param f An argument to be passed to the function referenced in the `function` argument. + * @param g An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.9 * @deprecated ​ Deprecated since 3.3. Use \`{@link Function#bind }\`. */ proxy(fn: (a: A, b: B, c: C, d: D, e: E, f: F, g: G, - t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn, + T, U, V, W, X, Y>(funсtion: (a: A, b: B, c: C, d: D, e: E, f: F, g: G, + t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn, context: null | undefined, a: A, b: B, c: C, d: D, e: E, f: F, g: G): (t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. + * @param d An argument to be passed to the function referenced in the `function` argument. + * @param e An argument to be passed to the function referenced in the `function` argument. + * @param f An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.9 * @deprecated ​ Deprecated since 3.3. Use \`{@link Function#bind }\`. */ proxy(fn: (a: A, b: B, c: C, d: D, e: E, f: F, - t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn, + T, U, V, W, X, Y>(funсtion: (a: A, b: B, c: C, d: D, e: E, f: F, + t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn, context: null | undefined, a: A, b: B, c: C, d: D, e: E, f: F): (t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. + * @param d An argument to be passed to the function referenced in the `function` argument. + * @param e An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.9 * @deprecated ​ Deprecated since 3.3. Use \`{@link Function#bind }\`. */ proxy(fn: (a: A, b: B, c: C, d: D, e: E, - t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn, + T, U, V, W, X, Y>(funсtion: (a: A, b: B, c: C, d: D, e: E, + t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn, context: null | undefined, a: A, b: B, c: C, d: D, e: E): (t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. + * @param d An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.9 * @deprecated ​ Deprecated since 3.3. Use \`{@link Function#bind }\`. */ proxy(fn: (a: A, b: B, c: C, d: D, - t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn, + T, U, V, W, X, Y>(funсtion: (a: A, b: B, c: C, d: D, + t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn, context: null | undefined, a: A, b: B, c: C, d: D): (t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.9 * @deprecated ​ Deprecated since 3.3. Use \`{@link Function#bind }\`. */ proxy(fn: (a: A, b: B, c: C, - t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn, + T, U, V, W, X, Y>(funсtion: (a: A, b: B, c: C, + t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn, context: null | undefined, a: A, b: B, c: C): (t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.9 * @deprecated ​ Deprecated since 3.3. Use \`{@link Function#bind }\`. */ proxy(fn: (a: A, b: B, - t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn, + T, U, V, W, X, Y>(funсtion: (a: A, b: B, + t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn, context: null | undefined, a: A, b: B): (t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.9 * @deprecated ​ Deprecated since 3.3. Use \`{@link Function#bind }\`. */ proxy(fn: (a: A, - t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn, + T, U, V, W, X, Y>(funсtion: (a: A, + t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn, context: null | undefined, a: A): (t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.9 * @deprecated ​ Deprecated since 3.3. Use \`{@link Function#bind }\`. */ proxy(fn: (t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn, + T, U, V, W, X, Y>(funсtion: (t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn, context: null | undefined): (t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn; // #endregion @@ -3560,112 +3757,140 @@ $.post( "test.php" ); /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. + * @param d An argument to be passed to the function referenced in the `function` argument. + * @param e An argument to be passed to the function referenced in the `function` argument. + * @param f An argument to be passed to the function referenced in the `function` argument. + * @param g An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.9 * @deprecated ​ Deprecated since 3.3. Use \`{@link Function#bind }\`. */ proxy(fn: (a: A, b: B, c: C, d: D, e: E, f: F, g: G, - t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn, + T, U, V, W, X, Y, Z>(funсtion: (a: A, b: B, c: C, d: D, e: E, f: F, g: G, + t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn, context: null | undefined, a: A, b: B, c: C, d: D, e: E, f: F, g: G): (t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. + * @param d An argument to be passed to the function referenced in the `function` argument. + * @param e An argument to be passed to the function referenced in the `function` argument. + * @param f An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.9 * @deprecated ​ Deprecated since 3.3. Use \`{@link Function#bind }\`. */ proxy(fn: (a: A, b: B, c: C, d: D, e: E, f: F, - t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn, + T, U, V, W, X, Y, Z>(funсtion: (a: A, b: B, c: C, d: D, e: E, f: F, + t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn, context: null | undefined, a: A, b: B, c: C, d: D, e: E, f: F): (t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. + * @param d An argument to be passed to the function referenced in the `function` argument. + * @param e An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.9 * @deprecated ​ Deprecated since 3.3. Use \`{@link Function#bind }\`. */ proxy(fn: (a: A, b: B, c: C, d: D, e: E, - t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn, + T, U, V, W, X, Y, Z>(funсtion: (a: A, b: B, c: C, d: D, e: E, + t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn, context: null | undefined, a: A, b: B, c: C, d: D, e: E): (t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. + * @param d An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.9 * @deprecated ​ Deprecated since 3.3. Use \`{@link Function#bind }\`. */ proxy(fn: (a: A, b: B, c: C, d: D, - t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn, + T, U, V, W, X, Y, Z>(funсtion: (a: A, b: B, c: C, d: D, + t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn, context: null | undefined, a: A, b: B, c: C, d: D): (t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.9 * @deprecated ​ Deprecated since 3.3. Use \`{@link Function#bind }\`. */ proxy(fn: (a: A, b: B, c: C, - t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn, + T, U, V, W, X, Y, Z>(funсtion: (a: A, b: B, c: C, + t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn, context: null | undefined, a: A, b: B, c: C): (t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.9 * @deprecated ​ Deprecated since 3.3. Use \`{@link Function#bind }\`. */ proxy(fn: (a: A, b: B, - t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn, + T, U, V, W, X, Y, Z>(funсtion: (a: A, b: B, + t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn, context: null | undefined, a: A, b: B): (t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.9 * @deprecated ​ Deprecated since 3.3. Use \`{@link Function#bind }\`. */ proxy(fn: (a: A, - t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn, + T, U, V, W, X, Y, Z>(funсtion: (a: A, + t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn, context: null | undefined, a: A): (t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.9 * @deprecated ​ Deprecated since 3.3. Use \`{@link Function#bind }\`. */ proxy(fn: (t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn, + T, U, V, W, X, Y, Z>(funсtion: (t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn, context: null | undefined): (t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn; // #endregion @@ -3677,14 +3902,14 @@ $.post( "test.php" ); /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. * @param additionalArguments Any number of arguments to be passed to the function referenced in the function argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.9 * @deprecated ​ Deprecated since 3.3. Use \`{@link Function#bind }\`. */ - proxy(fn: (...args: any[]) => TReturn, + proxy(funсtion: (...args: any[]) => TReturn, context: null | undefined, ...additionalArguments: any[]): (...args: any[]) => TReturn; @@ -3692,8 +3917,8 @@ $.post( "test.php" ); // #endregion - // region (fn, context) - // #region (fn, context) + // region (funсtion, context) + // #region (funсtion, context) // region 0 to 7 additional arguments // #region 0 to 7 additional arguments @@ -3703,8 +3928,15 @@ $.post( "test.php" ); /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. + * @param d An argument to be passed to the function referenced in the `function` argument. + * @param e An argument to be passed to the function referenced in the `function` argument. + * @param f An argument to be passed to the function referenced in the `function` argument. + * @param g An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.4 * @since 1.6 @@ -3828,15 +4060,21 @@ $( "#test" ) ``` */ - proxy(fn: (a: A, b: B, c: C, d: D, e: E, f: F, g: G) => TReturn, + A, B, C, D, E, F, G>(funсtion: (this: TContext, a: A, b: B, c: C, d: D, e: E, f: F, g: G) => TReturn, context: TContext, - a: A, b: B, c: C, d: D, e: E, f: F, g: G): (this: TContext) => TReturn; + a: A, b: B, c: C, d: D, e: E, f: F, g: G): () => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. + * @param d An argument to be passed to the function referenced in the `function` argument. + * @param e An argument to be passed to the function referenced in the `function` argument. + * @param f An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.4 * @since 1.6 @@ -3960,15 +4198,20 @@ $( "#test" ) ``` */ - proxy(fn: (a: A, b: B, c: C, d: D, e: E, f: F) => TReturn, + A, B, C, D, E, F>(funсtion: (this: TContext, a: A, b: B, c: C, d: D, e: E, f: F) => TReturn, context: TContext, - a: A, b: B, c: C, d: D, e: E, f: F): (this: TContext) => TReturn; + a: A, b: B, c: C, d: D, e: E, f: F): () => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. + * @param d An argument to be passed to the function referenced in the `function` argument. + * @param e An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.4 * @since 1.6 @@ -4092,15 +4335,19 @@ $( "#test" ) ``` */ - proxy(fn: (a: A, b: B, c: C, d: D, e: E) => TReturn, + A, B, C, D, E>(funсtion: (this: TContext, a: A, b: B, c: C, d: D, e: E) => TReturn, context: TContext, - a: A, b: B, c: C, d: D, e: E): (this: TContext) => TReturn; + a: A, b: B, c: C, d: D, e: E): () => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. + * @param d An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.4 * @since 1.6 @@ -4224,15 +4471,18 @@ $( "#test" ) ``` */ - proxy(fn: (a: A, b: B, c: C, d: D) => TReturn, + A, B, C, D>(funсtion: (this: TContext, a: A, b: B, c: C, d: D) => TReturn, context: TContext, - a: A, b: B, c: C, d: D): (this: TContext) => TReturn; + a: A, b: B, c: C, d: D): () => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.4 * @since 1.6 @@ -4356,15 +4606,17 @@ $( "#test" ) ``` */ - proxy(fn: (a: A, b: B, c: C) => TReturn, + A, B, C>(funсtion: (this: TContext, a: A, b: B, c: C) => TReturn, context: TContext, - a: A, b: B, c: C): (this: TContext) => TReturn; + a: A, b: B, c: C): () => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.4 * @since 1.6 @@ -4488,15 +4740,16 @@ $( "#test" ) ``` */ - proxy(fn: (a: A, b: B) => TReturn, + A, B>(funсtion: (this: TContext, a: A, b: B) => TReturn, context: TContext, - a: A, b: B): (this: TContext) => TReturn; + a: A, b: B): () => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.4` * @since 1.6 @@ -4620,14 +4873,14 @@ $( "#test" ) ``` */ - proxy(fn: (a: A) => TReturn, + A>(funсtion: (this: TContext, a: A) => TReturn, context: TContext, - a: A): (this: TContext) => TReturn; + a: A): () => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.4 @@ -4752,9 +5005,9 @@ $( "#test" ) ``` */ - proxy(fn: () => TReturn, - context: TContext): (this: TContext) => TReturn; + proxy(funсtion: (this: TContext) => TReturn, + context: TContext): () => TReturn; // #endregion @@ -4763,8 +5016,15 @@ $( "#test" ) /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. + * @param d An argument to be passed to the function referenced in the `function` argument. + * @param e An argument to be passed to the function referenced in the `function` argument. + * @param f An argument to be passed to the function referenced in the `function` argument. + * @param g An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.4 * @since 1.6 @@ -4888,17 +5148,23 @@ $( "#test" ) ``` */ - proxy(fn: (a: A, b: B, c: C, d: D, e: E, f: F, g: G, - t: T) => TReturn, + T>(funсtion: (this: TContext, a: A, b: B, c: C, d: D, e: E, f: F, g: G, + t: T) => TReturn, context: TContext, - a: A, b: B, c: C, d: D, e: E, f: F, g: G): (this: TContext, t: T) => TReturn; + a: A, b: B, c: C, d: D, e: E, f: F, g: G): (t: T) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. + * @param d An argument to be passed to the function referenced in the `function` argument. + * @param e An argument to be passed to the function referenced in the `function` argument. + * @param f An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.4 * @since 1.6 @@ -5022,17 +5288,22 @@ $( "#test" ) ``` */ - proxy(fn: (a: A, b: B, c: C, d: D, e: E, f: F, - t: T) => TReturn, + T>(funсtion: (this: TContext, a: A, b: B, c: C, d: D, e: E, f: F, + t: T) => TReturn, context: TContext, - a: A, b: B, c: C, d: D, e: E, f: F): (this: TContext, t: T) => TReturn; + a: A, b: B, c: C, d: D, e: E, f: F): (t: T) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. + * @param d An argument to be passed to the function referenced in the `function` argument. + * @param e An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.4 * @since 1.6 @@ -5156,17 +5427,21 @@ $( "#test" ) ``` */ - proxy(fn: (a: A, b: B, c: C, d: D, e: E, - t: T) => TReturn, + T>(funсtion: (this: TContext, a: A, b: B, c: C, d: D, e: E, + t: T) => TReturn, context: TContext, - a: A, b: B, c: C, d: D, e: E): (this: TContext, t: T) => TReturn; + a: A, b: B, c: C, d: D, e: E): (t: T) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. + * @param d An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.4 * @since 1.6 @@ -5290,17 +5565,20 @@ $( "#test" ) ``` */ - proxy(fn: (a: A, b: B, c: C, d: D, - t: T) => TReturn, + T>(funсtion: (this: TContext, a: A, b: B, c: C, d: D, + t: T) => TReturn, context: TContext, - a: A, b: B, c: C, d: D): (this: TContext, t: T) => TReturn; + a: A, b: B, c: C, d: D): (t: T) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.4 * @since 1.6 @@ -5424,17 +5702,19 @@ $( "#test" ) ``` */ - proxy(fn: (a: A, b: B, c: C, - t: T) => TReturn, + T>(funсtion: (this: TContext, a: A, b: B, c: C, + t: T) => TReturn, context: TContext, - a: A, b: B, c: C): (this: TContext, t: T) => TReturn; + a: A, b: B, c: C): (t: T) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.4 * @since 1.6 @@ -5558,17 +5838,18 @@ $( "#test" ) ``` */ - proxy(fn: (a: A, b: B, - t: T) => TReturn, + T>(funсtion: (this: TContext, a: A, b: B, + t: T) => TReturn, context: TContext, - a: A, b: B): (this: TContext, t: T) => TReturn; + a: A, b: B): (t: T) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.4 * @since 1.6 @@ -5692,16 +5973,16 @@ $( "#test" ) ``` */ - proxy(fn: (a: A, - t: T) => TReturn, + T>(funсtion: (this: TContext, a: A, + t: T) => TReturn, context: TContext, - a: A): (this: TContext, t: T) => TReturn; + a: A): (t: T) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.4 @@ -5826,10 +6107,10 @@ $( "#test" ) ``` */ - proxy(fn: (t: T) => TReturn, - context: TContext): (this: TContext, t: T) => TReturn; + T>(funсtion: (this: TContext, t: T) => TReturn, + context: TContext): (t: T) => TReturn; // #endregion @@ -5838,8 +6119,15 @@ $( "#test" ) /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. + * @param d An argument to be passed to the function referenced in the `function` argument. + * @param e An argument to be passed to the function referenced in the `function` argument. + * @param f An argument to be passed to the function referenced in the `function` argument. + * @param g An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.4 * @since 1.6 @@ -5963,17 +6251,23 @@ $( "#test" ) ``` */ - proxy(fn: (a: A, b: B, c: C, d: D, e: E, f: F, g: G, - t: T, u: U) => TReturn, + T, U>(funсtion: (this: TContext, a: A, b: B, c: C, d: D, e: E, f: F, g: G, + t: T, u: U) => TReturn, context: TContext, - a: A, b: B, c: C, d: D, e: E, f: F, g: G): (this: TContext, t: T, u: U) => TReturn; + a: A, b: B, c: C, d: D, e: E, f: F, g: G): (t: T, u: U) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. + * @param d An argument to be passed to the function referenced in the `function` argument. + * @param e An argument to be passed to the function referenced in the `function` argument. + * @param f An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.4 * @since 1.6 @@ -6097,17 +6391,22 @@ $( "#test" ) ``` */ - proxy(fn: (a: A, b: B, c: C, d: D, e: E, f: F, - t: T, u: U) => TReturn, + T, U>(funсtion: (this: TContext, a: A, b: B, c: C, d: D, e: E, f: F, + t: T, u: U) => TReturn, context: TContext, - a: A, b: B, c: C, d: D, e: E, f: F): (this: TContext, t: T, u: U) => TReturn; + a: A, b: B, c: C, d: D, e: E, f: F): (t: T, u: U) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. + * @param d An argument to be passed to the function referenced in the `function` argument. + * @param e An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.4 * @since 1.6 @@ -6231,17 +6530,21 @@ $( "#test" ) ``` */ - proxy(fn: (a: A, b: B, c: C, d: D, e: E, - t: T, u: U) => TReturn, + T, U>(funсtion: (this: TContext, a: A, b: B, c: C, d: D, e: E, + t: T, u: U) => TReturn, context: TContext, - a: A, b: B, c: C, d: D, e: E): (this: TContext, t: T, u: U) => TReturn; + a: A, b: B, c: C, d: D, e: E): (t: T, u: U) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. + * @param d An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.4 * @since 1.6 @@ -6365,17 +6668,20 @@ $( "#test" ) ``` */ - proxy(fn: (a: A, b: B, c: C, d: D, - t: T, u: U) => TReturn, + T, U>(funсtion: (this: TContext, a: A, b: B, c: C, d: D, + t: T, u: U) => TReturn, context: TContext, - a: A, b: B, c: C, d: D): (this: TContext, t: T, u: U) => TReturn; + a: A, b: B, c: C, d: D): (t: T, u: U) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.4 * @since 1.6 @@ -6499,17 +6805,19 @@ $( "#test" ) ``` */ - proxy(fn: (a: A, b: B, c: C, - t: T, u: U) => TReturn, + T, U>(funсtion: (this: TContext, a: A, b: B, c: C, + t: T, u: U) => TReturn, context: TContext, - a: A, b: B, c: C): (this: TContext, t: T, u: U) => TReturn; + a: A, b: B, c: C): (t: T, u: U) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.4 * @since 1.6 @@ -6633,17 +6941,18 @@ $( "#test" ) ``` */ - proxy(fn: (a: A, b: B, - t: T, u: U) => TReturn, + T, U>(funсtion: (this: TContext, a: A, b: B, + t: T, u: U) => TReturn, context: TContext, - a: A, b: B): (this: TContext, t: T, u: U) => TReturn; + a: A, b: B): (t: T, u: U) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.4 * @since 1.6 @@ -6767,16 +7076,16 @@ $( "#test" ) ``` */ - proxy(fn: (a: A, - t: T, u: U) => TReturn, + T, U>(funсtion: (this: TContext, a: A, + t: T, u: U) => TReturn, context: TContext, - a: A): (this: TContext, t: T, u: U) => TReturn; + a: A): (t: T, u: U) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.4 @@ -6901,10 +7210,10 @@ $( "#test" ) ``` */ - proxy(fn: (t: T, u: U) => TReturn, - context: TContext): (this: TContext, t: T, u: U) => TReturn; + T, U>(funсtion: (this: TContext, t: T, u: U) => TReturn, + context: TContext): (t: T, u: U) => TReturn; // #endregion @@ -6913,8 +7222,15 @@ $( "#test" ) /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. + * @param d An argument to be passed to the function referenced in the `function` argument. + * @param e An argument to be passed to the function referenced in the `function` argument. + * @param f An argument to be passed to the function referenced in the `function` argument. + * @param g An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.4 * @since 1.6 @@ -7038,17 +7354,23 @@ $( "#test" ) ``` */ - proxy(fn: (a: A, b: B, c: C, d: D, e: E, f: F, g: G, - t: T, u: U, v: V) => TReturn, + T, U, V>(funсtion: (this: TContext, a: A, b: B, c: C, d: D, e: E, f: F, g: G, + t: T, u: U, v: V) => TReturn, context: TContext, - a: A, b: B, c: C, d: D, e: E, f: F, g: G): (this: TContext, t: T, u: U, v: V) => TReturn; + a: A, b: B, c: C, d: D, e: E, f: F, g: G): (t: T, u: U, v: V) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. + * @param d An argument to be passed to the function referenced in the `function` argument. + * @param e An argument to be passed to the function referenced in the `function` argument. + * @param f An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.4 * @since 1.6 @@ -7172,17 +7494,22 @@ $( "#test" ) ``` */ - proxy(fn: (a: A, b: B, c: C, d: D, e: E, f: F, - t: T, u: U, v: V) => TReturn, + T, U, V>(funсtion: (this: TContext, a: A, b: B, c: C, d: D, e: E, f: F, + t: T, u: U, v: V) => TReturn, context: TContext, - a: A, b: B, c: C, d: D, e: E, f: F): (this: TContext, t: T, u: U, v: V) => TReturn; + a: A, b: B, c: C, d: D, e: E, f: F): (t: T, u: U, v: V) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. + * @param d An argument to be passed to the function referenced in the `function` argument. + * @param e An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.4 * @since 1.6 @@ -7306,17 +7633,21 @@ $( "#test" ) ``` */ - proxy(fn: (a: A, b: B, c: C, d: D, e: E, - t: T, u: U, v: V) => TReturn, + T, U, V>(funсtion: (this: TContext, a: A, b: B, c: C, d: D, e: E, + t: T, u: U, v: V) => TReturn, context: TContext, - a: A, b: B, c: C, d: D, e: E): (this: TContext, t: T, u: U, v: V) => TReturn; + a: A, b: B, c: C, d: D, e: E): (t: T, u: U, v: V) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. + * @param d An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.4 * @since 1.6 @@ -7440,17 +7771,20 @@ $( "#test" ) ``` */ - proxy(fn: (a: A, b: B, c: C, d: D, - t: T, u: U, v: V) => TReturn, + T, U, V>(funсtion: (this: TContext, a: A, b: B, c: C, d: D, + t: T, u: U, v: V) => TReturn, context: TContext, - a: A, b: B, c: C, d: D): (this: TContext, t: T, u: U, v: V) => TReturn; + a: A, b: B, c: C, d: D): (t: T, u: U, v: V) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.4 * @since 1.6 @@ -7574,17 +7908,19 @@ $( "#test" ) ``` */ - proxy(fn: (a: A, b: B, c: C, - t: T, u: U, v: V) => TReturn, + T, U, V>(funсtion: (this: TContext, a: A, b: B, c: C, + t: T, u: U, v: V) => TReturn, context: TContext, - a: A, b: B, c: C): (this: TContext, t: T, u: U, v: V) => TReturn; + a: A, b: B, c: C): (t: T, u: U, v: V) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.4 * @since 1.6 @@ -7708,17 +8044,18 @@ $( "#test" ) ``` */ - proxy(fn: (a: A, b: B, - t: T, u: U, v: V) => TReturn, + T, U, V>(funсtion: (this: TContext, a: A, b: B, + t: T, u: U, v: V) => TReturn, context: TContext, - a: A, b: B): (this: TContext, t: T, u: U, v: V) => TReturn; + a: A, b: B): (t: T, u: U, v: V) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.4 * @since 1.6 @@ -7842,16 +8179,16 @@ $( "#test" ) ``` */ - proxy(fn: (a: A, - t: T, u: U, v: V) => TReturn, + T, U, V>(funсtion: (this: TContext, a: A, + t: T, u: U, v: V) => TReturn, context: TContext, - a: A): (this: TContext, t: T, u: U, v: V) => TReturn; + a: A): (t: T, u: U, v: V) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.4 @@ -7976,10 +8313,10 @@ $( "#test" ) ``` */ - proxy(fn: (t: T, u: U, v: V) => TReturn, - context: TContext): (this: TContext, t: T, u: U, v: V) => TReturn; + T, U, V>(funсtion: (this: TContext, t: T, u: U, v: V) => TReturn, + context: TContext): (t: T, u: U, v: V) => TReturn; // #endregion @@ -7988,8 +8325,15 @@ $( "#test" ) /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. + * @param d An argument to be passed to the function referenced in the `function` argument. + * @param e An argument to be passed to the function referenced in the `function` argument. + * @param f An argument to be passed to the function referenced in the `function` argument. + * @param g An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.4 * @since 1.6 @@ -8113,17 +8457,23 @@ $( "#test" ) ``` */ - proxy(fn: (a: A, b: B, c: C, d: D, e: E, f: F, g: G, - t: T, u: U, v: V, w: W) => TReturn, + T, U, V, W>(funсtion: (this: TContext, a: A, b: B, c: C, d: D, e: E, f: F, g: G, + t: T, u: U, v: V, w: W) => TReturn, context: TContext, - a: A, b: B, c: C, d: D, e: E, f: F, g: G): (this: TContext, t: T, u: U, v: V, w: W) => TReturn; + a: A, b: B, c: C, d: D, e: E, f: F, g: G): (t: T, u: U, v: V, w: W) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. + * @param d An argument to be passed to the function referenced in the `function` argument. + * @param e An argument to be passed to the function referenced in the `function` argument. + * @param f An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.4 * @since 1.6 @@ -8247,17 +8597,22 @@ $( "#test" ) ``` */ - proxy(fn: (a: A, b: B, c: C, d: D, e: E, f: F, - t: T, u: U, v: V, w: W) => TReturn, + T, U, V, W>(funсtion: (this: TContext, a: A, b: B, c: C, d: D, e: E, f: F, + t: T, u: U, v: V, w: W) => TReturn, context: TContext, - a: A, b: B, c: C, d: D, e: E, f: F): (this: TContext, t: T, u: U, v: V, w: W) => TReturn; + a: A, b: B, c: C, d: D, e: E, f: F): (t: T, u: U, v: V, w: W) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. + * @param d An argument to be passed to the function referenced in the `function` argument. + * @param e An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.4 * @since 1.6 @@ -8381,17 +8736,21 @@ $( "#test" ) ``` */ - proxy(fn: (a: A, b: B, c: C, d: D, e: E, - t: T, u: U, v: V, w: W) => TReturn, + T, U, V, W>(funсtion: (this: TContext, a: A, b: B, c: C, d: D, e: E, + t: T, u: U, v: V, w: W) => TReturn, context: TContext, - a: A, b: B, c: C, d: D, e: E): (this: TContext, t: T, u: U, v: V, w: W) => TReturn; + a: A, b: B, c: C, d: D, e: E): (t: T, u: U, v: V, w: W) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. + * @param d An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.4 * @since 1.6 @@ -8515,17 +8874,20 @@ $( "#test" ) ``` */ - proxy(fn: (a: A, b: B, c: C, d: D, - t: T, u: U, v: V, w: W) => TReturn, + T, U, V, W>(funсtion: (this: TContext, a: A, b: B, c: C, d: D, + t: T, u: U, v: V, w: W) => TReturn, context: TContext, - a: A, b: B, c: C, d: D): (this: TContext, t: T, u: U, v: V, w: W) => TReturn; + a: A, b: B, c: C, d: D): (t: T, u: U, v: V, w: W) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.4 * @since 1.6 @@ -8649,17 +9011,19 @@ $( "#test" ) ``` */ - proxy(fn: (a: A, b: B, c: C, - t: T, u: U, v: V, w: W) => TReturn, + T, U, V, W>(funсtion: (this: TContext, a: A, b: B, c: C, + t: T, u: U, v: V, w: W) => TReturn, context: TContext, - a: A, b: B, c: C): (this: TContext, t: T, u: U, v: V, w: W) => TReturn; + a: A, b: B, c: C): (t: T, u: U, v: V, w: W) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.4 * @since 1.6 @@ -8783,17 +9147,18 @@ $( "#test" ) ``` */ - proxy(fn: (a: A, b: B, - t: T, u: U, v: V, w: W) => TReturn, + T, U, V, W>(funсtion: (this: TContext, a: A, b: B, + t: T, u: U, v: V, w: W) => TReturn, context: TContext, - a: A, b: B): (this: TContext, t: T, u: U, v: V, w: W) => TReturn; + a: A, b: B): (t: T, u: U, v: V, w: W) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.4 * @since 1.6 @@ -8917,16 +9282,16 @@ $( "#test" ) ``` */ - proxy(fn: (a: A, - t: T, u: U, v: V, w: W) => TReturn, + T, U, V, W>(funсtion: (this: TContext, a: A, + t: T, u: U, v: V, w: W) => TReturn, context: TContext, - a: A): (this: TContext, t: T, u: U, v: V, w: W) => TReturn; + a: A): (t: T, u: U, v: V, w: W) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.4 @@ -9051,10 +9416,10 @@ $( "#test" ) ``` */ - proxy(fn: (t: T, u: U, v: V, w: W) => TReturn, - context: TContext): (this: TContext, t: T, u: U, v: V, w: W) => TReturn; + T, U, V, W>(funсtion: (this: TContext, t: T, u: U, v: V, w: W) => TReturn, + context: TContext): (t: T, u: U, v: V, w: W) => TReturn; // #endregion @@ -9063,8 +9428,15 @@ $( "#test" ) /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. + * @param d An argument to be passed to the function referenced in the `function` argument. + * @param e An argument to be passed to the function referenced in the `function` argument. + * @param f An argument to be passed to the function referenced in the `function` argument. + * @param g An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.4 * @since 1.6 @@ -9188,17 +9560,23 @@ $( "#test" ) ``` */ - proxy(fn: (a: A, b: B, c: C, d: D, e: E, f: F, g: G, - t: T, u: U, v: V, w: W, x: X) => TReturn, + T, U, V, W, X>(funсtion: (this: TContext, a: A, b: B, c: C, d: D, e: E, f: F, g: G, + t: T, u: U, v: V, w: W, x: X) => TReturn, context: TContext, - a: A, b: B, c: C, d: D, e: E, f: F, g: G): (this: TContext, t: T, u: U, v: V, w: W, x: X) => TReturn; + a: A, b: B, c: C, d: D, e: E, f: F, g: G): (t: T, u: U, v: V, w: W, x: X) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. + * @param d An argument to be passed to the function referenced in the `function` argument. + * @param e An argument to be passed to the function referenced in the `function` argument. + * @param f An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.4 * @since 1.6 @@ -9322,17 +9700,22 @@ $( "#test" ) ``` */ - proxy(fn: (a: A, b: B, c: C, d: D, e: E, f: F, - t: T, u: U, v: V, w: W, x: X) => TReturn, + T, U, V, W, X>(funсtion: (this: TContext, a: A, b: B, c: C, d: D, e: E, f: F, + t: T, u: U, v: V, w: W, x: X) => TReturn, context: TContext, - a: A, b: B, c: C, d: D, e: E, f: F): (this: TContext, t: T, u: U, v: V, w: W, x: X) => TReturn; + a: A, b: B, c: C, d: D, e: E, f: F): (t: T, u: U, v: V, w: W, x: X) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. + * @param d An argument to be passed to the function referenced in the `function` argument. + * @param e An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.4 * @since 1.6 @@ -9456,17 +9839,21 @@ $( "#test" ) ``` */ - proxy(fn: (a: A, b: B, c: C, d: D, e: E, - t: T, u: U, v: V, w: W, x: X) => TReturn, + T, U, V, W, X>(funсtion: (this: TContext, a: A, b: B, c: C, d: D, e: E, + t: T, u: U, v: V, w: W, x: X) => TReturn, context: TContext, - a: A, b: B, c: C, d: D, e: E): (this: TContext, t: T, u: U, v: V, w: W, x: X) => TReturn; + a: A, b: B, c: C, d: D, e: E): (t: T, u: U, v: V, w: W, x: X) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. + * @param d An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.4 * @since 1.6 @@ -9590,17 +9977,20 @@ $( "#test" ) ``` */ - proxy(fn: (a: A, b: B, c: C, d: D, - t: T, u: U, v: V, w: W, x: X) => TReturn, + T, U, V, W, X>(funсtion: (this: TContext, a: A, b: B, c: C, d: D, + t: T, u: U, v: V, w: W, x: X) => TReturn, context: TContext, - a: A, b: B, c: C, d: D): (this: TContext, t: T, u: U, v: V, w: W, x: X) => TReturn; + a: A, b: B, c: C, d: D): (t: T, u: U, v: V, w: W, x: X) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.4 * @since 1.6 @@ -9724,17 +10114,19 @@ $( "#test" ) ``` */ - proxy(fn: (a: A, b: B, c: C, - t: T, u: U, v: V, w: W, x: X) => TReturn, + T, U, V, W, X>(funсtion: (this: TContext, a: A, b: B, c: C, + t: T, u: U, v: V, w: W, x: X) => TReturn, context: TContext, - a: A, b: B, c: C): (this: TContext, t: T, u: U, v: V, w: W, x: X) => TReturn; + a: A, b: B, c: C): (t: T, u: U, v: V, w: W, x: X) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.4 * @since 1.6 @@ -9858,17 +10250,18 @@ $( "#test" ) ``` */ - proxy(fn: (a: A, b: B, - t: T, u: U, v: V, w: W, x: X) => TReturn, + T, U, V, W, X>(funсtion: (this: TContext, a: A, b: B, + t: T, u: U, v: V, w: W, x: X) => TReturn, context: TContext, - a: A, b: B): (this: TContext, t: T, u: U, v: V, w: W, x: X) => TReturn; + a: A, b: B): (t: T, u: U, v: V, w: W, x: X) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.4 * @since 1.6 @@ -9992,16 +10385,16 @@ $( "#test" ) ``` */ - proxy(fn: (a: A, - t: T, u: U, v: V, w: W, x: X) => TReturn, + T, U, V, W, X>(funсtion: (this: TContext, a: A, + t: T, u: U, v: V, w: W, x: X) => TReturn, context: TContext, - a: A): (this: TContext, t: T, u: U, v: V, w: W, x: X) => TReturn; + a: A): (t: T, u: U, v: V, w: W, x: X) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.4 @@ -10126,10 +10519,10 @@ $( "#test" ) ``` */ - proxy(fn: (t: T, u: U, v: V, w: W, x: X) => TReturn, - context: TContext): (this: TContext, t: T, u: U, v: V, w: W, x: X) => TReturn; + T, U, V, W, X>(funсtion: (this: TContext, t: T, u: U, v: V, w: W, x: X) => TReturn, + context: TContext): (t: T, u: U, v: V, w: W, x: X) => TReturn; // #endregion @@ -10138,8 +10531,15 @@ $( "#test" ) /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. + * @param d An argument to be passed to the function referenced in the `function` argument. + * @param e An argument to be passed to the function referenced in the `function` argument. + * @param f An argument to be passed to the function referenced in the `function` argument. + * @param g An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.4 * @since 1.6 @@ -10263,17 +10663,23 @@ $( "#test" ) ``` */ - proxy(fn: (a: A, b: B, c: C, d: D, e: E, f: F, g: G, - t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn, + T, U, V, W, X, Y>(funсtion: (this: TContext, a: A, b: B, c: C, d: D, e: E, f: F, g: G, + t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn, context: TContext, - a: A, b: B, c: C, d: D, e: E, f: F, g: G): (this: TContext, t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn; + a: A, b: B, c: C, d: D, e: E, f: F, g: G): (t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. + * @param d An argument to be passed to the function referenced in the `function` argument. + * @param e An argument to be passed to the function referenced in the `function` argument. + * @param f An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.4 * @since 1.6 @@ -10397,17 +10803,22 @@ $( "#test" ) ``` */ - proxy(fn: (a: A, b: B, c: C, d: D, e: E, f: F, - t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn, + T, U, V, W, X, Y>(funсtion: (this: TContext, a: A, b: B, c: C, d: D, e: E, f: F, + t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn, context: TContext, - a: A, b: B, c: C, d: D, e: E, f: F): (this: TContext, t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn; + a: A, b: B, c: C, d: D, e: E, f: F): (t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. + * @param d An argument to be passed to the function referenced in the `function` argument. + * @param e An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.4 * @since 1.6 @@ -10531,17 +10942,21 @@ $( "#test" ) ``` */ - proxy(fn: (a: A, b: B, c: C, d: D, e: E, - t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn, + T, U, V, W, X, Y>(funсtion: (this: TContext, a: A, b: B, c: C, d: D, e: E, + t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn, context: TContext, - a: A, b: B, c: C, d: D, e: E): (this: TContext, t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn; + a: A, b: B, c: C, d: D, e: E): (t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. + * @param d An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.4 * @since 1.6 @@ -10665,17 +11080,20 @@ $( "#test" ) ``` */ - proxy(fn: (a: A, b: B, c: C, d: D, - t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn, + T, U, V, W, X, Y>(funсtion: (this: TContext, a: A, b: B, c: C, d: D, + t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn, context: TContext, - a: A, b: B, c: C, d: D): (this: TContext, t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn; + a: A, b: B, c: C, d: D): (t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.4 * @since 1.6 @@ -10799,17 +11217,19 @@ $( "#test" ) ``` */ - proxy(fn: (a: A, b: B, c: C, - t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn, + T, U, V, W, X, Y>(funсtion: (this: TContext, a: A, b: B, c: C, + t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn, context: TContext, - a: A, b: B, c: C): (this: TContext, t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn; + a: A, b: B, c: C): (t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.4 * @since 1.6 @@ -10933,17 +11353,18 @@ $( "#test" ) ``` */ - proxy(fn: (a: A, b: B, - t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn, + T, U, V, W, X, Y>(funсtion: (this: TContext, a: A, b: B, + t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn, context: TContext, - a: A, b: B): (this: TContext, t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn; + a: A, b: B): (t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.4 * @since 1.6 @@ -11067,16 +11488,16 @@ $( "#test" ) ``` */ - proxy(fn: (a: A, - t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn, + T, U, V, W, X, Y>(funсtion: (this: TContext, a: A, + t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn, context: TContext, - a: A): (this: TContext, t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn; + a: A): (t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.4 @@ -11201,10 +11622,10 @@ $( "#test" ) ``` */ - proxy(fn: (t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn, - context: TContext): (this: TContext, t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn; + T, U, V, W, X, Y>(funсtion: (this: TContext, t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn, + context: TContext): (t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn; // #endregion @@ -11213,8 +11634,15 @@ $( "#test" ) /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. + * @param d An argument to be passed to the function referenced in the `function` argument. + * @param e An argument to be passed to the function referenced in the `function` argument. + * @param f An argument to be passed to the function referenced in the `function` argument. + * @param g An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.4 * @since 1.6 @@ -11338,17 +11766,23 @@ $( "#test" ) ``` */ - proxy(fn: (a: A, b: B, c: C, d: D, e: E, f: F, g: G, - t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn, + T, U, V, W, X, Y, Z>(funсtion: (this: TContext, a: A, b: B, c: C, d: D, e: E, f: F, g: G, + t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn, context: TContext, - a: A, b: B, c: C, d: D, e: E, f: F, g: G): (this: TContext, t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn; + a: A, b: B, c: C, d: D, e: E, f: F, g: G): (t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. + * @param d An argument to be passed to the function referenced in the `function` argument. + * @param e An argument to be passed to the function referenced in the `function` argument. + * @param f An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.4 * @since 1.6 @@ -11472,17 +11906,22 @@ $( "#test" ) ``` */ - proxy(fn: (a: A, b: B, c: C, d: D, e: E, f: F, - t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn, + T, U, V, W, X, Y, Z>(funсtion: (this: TContext, a: A, b: B, c: C, d: D, e: E, f: F, + t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn, context: TContext, - a: A, b: B, c: C, d: D, e: E, f: F): (this: TContext, t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn; + a: A, b: B, c: C, d: D, e: E, f: F): (t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. + * @param d An argument to be passed to the function referenced in the `function` argument. + * @param e An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.4 * @since 1.6 @@ -11606,17 +12045,21 @@ $( "#test" ) ``` */ - proxy(fn: (a: A, b: B, c: C, d: D, e: E, - t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn, + T, U, V, W, X, Y, Z>(funсtion: (this: TContext, a: A, b: B, c: C, d: D, e: E, + t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn, context: TContext, - a: A, b: B, c: C, d: D, e: E): (this: TContext, t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn; + a: A, b: B, c: C, d: D, e: E): (t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. + * @param d An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.4 * @since 1.6 @@ -11740,17 +12183,20 @@ $( "#test" ) ``` */ - proxy(fn: (a: A, b: B, c: C, d: D, - t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn, + T, U, V, W, X, Y, Z>(funсtion: (this: TContext, a: A, b: B, c: C, d: D, + t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn, context: TContext, - a: A, b: B, c: C, d: D): (this: TContext, t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn; + a: A, b: B, c: C, d: D): (t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. + * @param c An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.4 * @since 1.6 @@ -11874,17 +12320,19 @@ $( "#test" ) ``` */ - proxy(fn: (a: A, b: B, c: C, - t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn, + T, U, V, W, X, Y, Z>(funсtion: (this: TContext, a: A, b: B, c: C, + t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn, context: TContext, - a: A, b: B, c: C): (this: TContext, t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn; + a: A, b: B, c: C): (t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. + * @param b An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.4 * @since 1.6 @@ -12008,17 +12456,18 @@ $( "#test" ) ``` */ - proxy(fn: (a: A, b: B, - t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn, + T, U, V, W, X, Y, Z>(funсtion: (this: TContext, a: A, b: B, + t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn, context: TContext, - a: A, b: B): (this: TContext, t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn; + a: A, b: B): (t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. + * @param a An argument to be passed to the function referenced in the `function` argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.4 * @since 1.6 @@ -12142,16 +12591,16 @@ $( "#test" ) ``` */ - proxy(fn: (a: A, - t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn, + T, U, V, W, X, Y, Z>(funсtion: (this: TContext, a: A, + t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn, context: TContext, - a: A): (this: TContext, t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn; + a: A): (t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn; /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` * @since 1.4 @@ -12276,10 +12725,10 @@ $( "#test" ) ``` */ - proxy(fn: (t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn, - context: TContext): (this: TContext, t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn; + T, U, V, W, X, Y, Z>(funсtion: (this: TContext, t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn, + context: TContext): (t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn; // #endregion @@ -12290,7 +12739,7 @@ $( "#test" ) /** * Takes a function and returns a new one that will always have a particular context. - * @param fn The function whose context will be changed. + * @param funсtion The function whose context will be changed. * @param context The object to which the context (`this`) of the function should be set. * @param additionalArguments Any number of arguments to be passed to the function referenced in the function argument. * @see \`{@link https://api.jquery.com/jQuery.proxy/ }\` @@ -12416,10 +12865,10 @@ $( "#test" ) ``` */ - proxy(fn: (...args: any[]) => TReturn, + proxy(funсtion: (this: TContext, ...args: any[]) => TReturn, context: TContext, - ...additionalArguments: any[]): (this: TContext, ...args: any[]) => TReturn; + ...additionalArguments: any[]): (...args: any[]) => TReturn; // #endregion @@ -12466,9 +12915,9 @@ $( "#test" ).on( "click", jQuery.proxy( obj, "test" ) ); ``` */ - proxy(context: TContext, - name: keyof TContext, - ...additionalArguments: any[]): (this: TContext, ...args: any[]) => any; + proxy(context: TContext, + name: keyof TContext, + ...additionalArguments: any[]): (...args: any[]) => any; // #endregion diff --git a/types/jquery/jquery-tests.ts b/types/jquery/jquery-tests.ts index befd31e7e7..515715bf14 100644 --- a/types/jquery/jquery-tests.ts +++ b/types/jquery/jquery-tests.ts @@ -1039,6 +1039,7 @@ function JQueryStatic() { } function proxy() { + interface JContext { kind: 'JContext'; } interface J1 { kind: 'J1'; } interface J2 { kind: 'J2'; } interface J3 { kind: 'J3'; } @@ -1048,6 +1049,7 @@ function JQueryStatic() { interface J7 { kind: 'J7'; } interface J8 { kind: 'J8'; } + const context: JContext = {} as any; const a: J8 = {} as any; const b: J7 = {} as any; const c: J6 = {} as any; @@ -1055,7 +1057,7 @@ function JQueryStatic() { const e: J4 = {} as any; const f: J3 = {} as any; const g: J2 = {} as any; - const h: J2 = {} as any; + const h: J1 = {} as any; type A = typeof a; type B = typeof b; @@ -1064,9 +1066,8 @@ function JQueryStatic() { type E = typeof e; type F = typeof f; type G = typeof g; - type H = typeof h; - // (fn, null) + // (funсtion, null) { // $ExpectType () => void $.proxy((a, b, c, d, e, f, g) => { }, null, a, b, c, d, e, f, g); @@ -1288,7 +1289,7 @@ function JQueryStatic() { $.proxy((a, b, c, d, e, f, g, h, t: J1, u: J2, v: J3, w: J4, x: J5, y: J6, z: J7, _: J8) => { }, null, a, b, c, d, e, f, g, h); } - // (fn, undefined) + // (funсtion, undefined) { // $ExpectType () => void $.proxy((a, b, c, d, e, f, g) => { }, undefined, a, b, c, d, e, f, g); @@ -1510,232 +1511,451 @@ function JQueryStatic() { $.proxy((a, b, c, d, e, f, g, h, t: J1, u: J2, v: J3, w: J4, x: J5, y: J6, z: J7, _: J8) => { }, undefined, a, b, c, d, e, f, g, h); } - // (fn, context) + // (funсtion, context) { - // $ExpectType (this: {}) => void - $.proxy((a, b, c, d, e, f, g) => { }, {}, a, b, c, d, e, f, g); - - // $ExpectType (this: {}) => void - $.proxy((a, b, c, d, e, f) => { }, {}, a, b, c, d, e, f); - - // $ExpectType (this: {}) => void - $.proxy((a, b, c, d, e) => { }, {}, a, b, c, d, e); - - // $ExpectType (this: {}) => void - $.proxy((a, b, c, d) => { }, {}, a, b, c, d); - - // $ExpectType (this: {}) => void - $.proxy((a, b, c) => { }, {}, a, b, c); - - // $ExpectType (this: {}) => void - $.proxy((a, b) => { }, {}, a, b); - - // $ExpectType (this: {}) => void - $.proxy((a) => { }, {}, a); - - // $ExpectType (this: {}) => void - $.proxy(() => { }, {}); - - // $ExpectType (this: {}, t: J1) => void - $.proxy((a: A, b: B, c: C, d: D, e: E, f: F, g: G, t: J1) => { }, {}, a, b, c, d, e, f, g); - - // $ExpectType (this: {}, t: J1) => void - $.proxy((a: A, b: B, c: C, d: D, e: E, f: F, t: J1) => { }, {}, a, b, c, d, e, f); - - // $ExpectType (this: {}, t: J1) => void - $.proxy((a: A, b: B, c: C, d: D, e: E, t: J1) => { }, {}, a, b, c, d, e); - - // $ExpectType (this: {}, t: J1) => void - $.proxy((a: A, b: B, c: C, d: D, t: J1) => { }, {}, a, b, c, d); - - // $ExpectType (this: {}, t: J1) => void - $.proxy((a: A, b: B, c: C, t: J1) => { }, {}, a, b, c); - - // $ExpectType (this: {}, t: J1) => void - $.proxy((a: A, b: B, t: J1) => { }, {}, a, b); - - // $ExpectType (this: {}, t: J1) => void - $.proxy((a: A, t: J1) => { }, {}, a); - - // $ExpectType (this: {}, t: J1) => void - $.proxy((t: J1) => { }, {}); - - // $ExpectType (this: {}, t: J1, u: J2) => void - $.proxy((a: A, b: B, c: C, d: D, e: E, f: F, g: G, t: J1, u: J2) => { }, {}, a, b, c, d, e, f, g); - - // $ExpectType (this: {}, t: J1, u: J2) => void - $.proxy((a: A, b: B, c: C, d: D, e: E, f: F, t: J1, u: J2) => { }, {}, a, b, c, d, e, f); - - // $ExpectType (this: {}, t: J1, u: J2) => void - $.proxy((a: A, b: B, c: C, d: D, e: E, t: J1, u: J2) => { }, {}, a, b, c, d, e); - - // $ExpectType (this: {}, t: J1, u: J2) => void - $.proxy((a: A, b: B, c: C, d: D, t: J1, u: J2) => { }, {}, a, b, c, d); - - // $ExpectType (this: {}, t: J1, u: J2) => void - $.proxy((a: A, b: B, c: C, t: J1, u: J2) => { }, {}, a, b, c); - - // $ExpectType (this: {}, t: J1, u: J2) => void - $.proxy((a: A, b: B, t: J1, u: J2) => { }, {}, a, b); - - // $ExpectType (this: {}, t: J1, u: J2) => void - $.proxy((a: A, t: J1, u: J2) => { }, {}, a); - - // $ExpectType (this: {}, t: J1, u: J2) => void - $.proxy((t: J1, u: J2) => { }, {}); - - // $ExpectType (this: {}, t: J1, u: J2, v: J3) => void - $.proxy((a: A, b: B, c: C, d: D, e: E, f: F, g: G, t: J1, u: J2, v: J3) => { }, {}, a, b, c, d, e, f, g); - - // $ExpectType (this: {}, t: J1, u: J2, v: J3) => void - $.proxy((a: A, b: B, c: C, d: D, e: E, f: F, t: J1, u: J2, v: J3) => { }, {}, a, b, c, d, e, f); - - // $ExpectType (this: {}, t: J1, u: J2, v: J3) => void - $.proxy((a: A, b: B, c: C, d: D, e: E, t: J1, u: J2, v: J3) => { }, {}, a, b, c, d, e); - - // $ExpectType (this: {}, t: J1, u: J2, v: J3) => void - $.proxy((a: A, b: B, c: C, d: D, t: J1, u: J2, v: J3) => { }, {}, a, b, c, d); - - // $ExpectType (this: {}, t: J1, u: J2, v: J3) => void - $.proxy((a: A, b: B, c: C, t: J1, u: J2, v: J3) => { }, {}, a, b, c); - - // $ExpectType (this: {}, t: J1, u: J2, v: J3) => void - $.proxy((a: A, b: B, t: J1, u: J2, v: J3) => { }, {}, a, b); - - // $ExpectType (this: {}, t: J1, u: J2, v: J3) => void - $.proxy((a: A, t: J1, u: J2, v: J3) => { }, {}, a); - - // $ExpectType (this: {}, t: J1, u: J2, v: J3) => void - $.proxy((t: J1, u: J2, v: J3) => { }, {}); - - // $ExpectType (this: {}, t: J1, u: J2, v: J3, w: J4) => void - $.proxy((a: A, b: B, c: C, d: D, e: E, f: F, g: G, t: J1, u: J2, v: J3, w: J4) => { }, {}, a, b, c, d, e, f, g); - - // $ExpectType (this: {}, t: J1, u: J2, v: J3, w: J4) => void - $.proxy((a: A, b: B, c: C, d: D, e: E, f: F, t: J1, u: J2, v: J3, w: J4) => { }, {}, a, b, c, d, e, f); - - // $ExpectType (this: {}, t: J1, u: J2, v: J3, w: J4) => void - $.proxy((a: A, b: B, c: C, d: D, e: E, t: J1, u: J2, v: J3, w: J4) => { }, {}, a, b, c, d, e); - - // $ExpectType (this: {}, t: J1, u: J2, v: J3, w: J4) => void - $.proxy((a: A, b: B, c: C, d: D, t: J1, u: J2, v: J3, w: J4) => { }, {}, a, b, c, d); - - // $ExpectType (this: {}, t: J1, u: J2, v: J3, w: J4) => void - $.proxy((a: A, b: B, c: C, t: J1, u: J2, v: J3, w: J4) => { }, {}, a, b, c); - - // $ExpectType (this: {}, t: J1, u: J2, v: J3, w: J4) => void - $.proxy((a: A, b: B, t: J1, u: J2, v: J3, w: J4) => { }, {}, a, b); - - // $ExpectType (this: {}, t: J1, u: J2, v: J3, w: J4) => void - $.proxy((a: A, t: J1, u: J2, v: J3, w: J4) => { }, {}, a); - - // $ExpectType (this: {}, t: J1, u: J2, v: J3, w: J4) => void - $.proxy((t: J1, u: J2, v: J3, w: J4) => { }, {}); - - // $ExpectType (this: {}, t: J1, u: J2, v: J3, w: J4, x: J5) => void - $.proxy((a: A, b: B, c: C, d: D, e: E, f: F, g: G, t: J1, u: J2, v: J3, w: J4, x: J5) => { }, {}, a, b, c, d, e, f, g); - - // $ExpectType (this: {}, t: J1, u: J2, v: J3, w: J4, x: J5) => void - $.proxy((a: A, b: B, c: C, d: D, e: E, f: F, t: J1, u: J2, v: J3, w: J4, x: J5) => { }, {}, a, b, c, d, e, f); - - // $ExpectType (this: {}, t: J1, u: J2, v: J3, w: J4, x: J5) => void - $.proxy((a: A, b: B, c: C, d: D, e: E, t: J1, u: J2, v: J3, w: J4, x: J5) => { }, {}, a, b, c, d, e); - - // $ExpectType (this: {}, t: J1, u: J2, v: J3, w: J4, x: J5) => void - $.proxy((a: A, b: B, c: C, d: D, t: J1, u: J2, v: J3, w: J4, x: J5) => { }, {}, a, b, c, d); - - // $ExpectType (this: {}, t: J1, u: J2, v: J3, w: J4, x: J5) => void - $.proxy((a: A, b: B, c: C, t: J1, u: J2, v: J3, w: J4, x: J5) => { }, {}, a, b, c); - - // $ExpectType (this: {}, t: J1, u: J2, v: J3, w: J4, x: J5) => void - $.proxy((a: A, b: B, t: J1, u: J2, v: J3, w: J4, x: J5) => { }, {}, a, b); - - // $ExpectType (this: {}, t: J1, u: J2, v: J3, w: J4, x: J5) => void - $.proxy((a: A, t: J1, u: J2, v: J3, w: J4, x: J5) => { }, {}, a); - - // $ExpectType (this: {}, t: J1, u: J2, v: J3, w: J4, x: J5) => void - $.proxy((t: J1, u: J2, v: J3, w: J4, x: J5) => { }, {}); - - // $ExpectType (this: {}, t: J1, u: J2, v: J3, w: J4, x: J5, y: J6) => void - $.proxy((a: A, b: B, c: C, d: D, e: E, f: F, g: G, t: J1, u: J2, v: J3, w: J4, x: J5, y: J6) => { }, {}, a, b, c, d, e, f, g); - - // $ExpectType (this: {}, t: J1, u: J2, v: J3, w: J4, x: J5, y: J6) => void - $.proxy((a: A, b: B, c: C, d: D, e: E, f: F, t: J1, u: J2, v: J3, w: J4, x: J5, y: J6) => { }, {}, a, b, c, d, e, f); - - // $ExpectType (this: {}, t: J1, u: J2, v: J3, w: J4, x: J5, y: J6) => void - $.proxy((a: A, b: B, c: C, d: D, e: E, t: J1, u: J2, v: J3, w: J4, x: J5, y: J6) => { }, {}, a, b, c, d, e); - - // $ExpectType (this: {}, t: J1, u: J2, v: J3, w: J4, x: J5, y: J6) => void - $.proxy((a: A, b: B, c: C, d: D, t: J1, u: J2, v: J3, w: J4, x: J5, y: J6) => { }, {}, a, b, c, d); - - // $ExpectType (this: {}, t: J1, u: J2, v: J3, w: J4, x: J5, y: J6) => void - $.proxy((a: A, b: B, c: C, t: J1, u: J2, v: J3, w: J4, x: J5, y: J6) => { }, {}, a, b, c); - - // $ExpectType (this: {}, t: J1, u: J2, v: J3, w: J4, x: J5, y: J6) => void - $.proxy((a: A, b: B, t: J1, u: J2, v: J3, w: J4, x: J5, y: J6) => { }, {}, a, b); - - // $ExpectType (this: {}, t: J1, u: J2, v: J3, w: J4, x: J5, y: J6) => void - $.proxy((a: A, t: J1, u: J2, v: J3, w: J4, x: J5, y: J6) => { }, {}, a); - - // $ExpectType (this: {}, t: J1, u: J2, v: J3, w: J4, x: J5, y: J6) => void - $.proxy((t: J1, u: J2, v: J3, w: J4, x: J5, y: J6) => { }, {}); - - // $ExpectType (this: {}, t: J1, u: J2, v: J3, w: J4, x: J5, y: J6, z: J7, ...args: any[]) => void - $.proxy((a: A, b: B, c: C, d: D, e: E, f: F, g: G, t: J1, u: J2, v: J3, w: J4, x: J5, y: J6, z: J7) => { }, {}, a, b, c, d, e, f, g); - - // $ExpectType (this: {}, t: J1, u: J2, v: J3, w: J4, x: J5, y: J6, z: J7, ...args: any[]) => void - $.proxy((a: A, b: B, c: C, d: D, e: E, f: F, t: J1, u: J2, v: J3, w: J4, x: J5, y: J6, z: J7) => { }, {}, a, b, c, d, e, f); - - // $ExpectType (this: {}, t: J1, u: J2, v: J3, w: J4, x: J5, y: J6, z: J7, ...args: any[]) => void - $.proxy((a: A, b: B, c: C, d: D, e: E, t: J1, u: J2, v: J3, w: J4, x: J5, y: J6, z: J7) => { }, {}, a, b, c, d, e); - - // $ExpectType (this: {}, t: J1, u: J2, v: J3, w: J4, x: J5, y: J6, z: J7, ...args: any[]) => void - $.proxy((a: A, b: B, c: C, d: D, t: J1, u: J2, v: J3, w: J4, x: J5, y: J6, z: J7) => { }, {}, a, b, c, d); - - // $ExpectType (this: {}, t: J1, u: J2, v: J3, w: J4, x: J5, y: J6, z: J7, ...args: any[]) => void - $.proxy((a: A, b: B, c: C, t: J1, u: J2, v: J3, w: J4, x: J5, y: J6, z: J7) => { }, {}, a, b, c); - - // $ExpectType (this: {}, t: J1, u: J2, v: J3, w: J4, x: J5, y: J6, z: J7, ...args: any[]) => void - $.proxy((a: A, b: B, t: J1, u: J2, v: J3, w: J4, x: J5, y: J6, z: J7) => { }, {}, a, b); - - // $ExpectType (this: {}, t: J1, u: J2, v: J3, w: J4, x: J5, y: J6, z: J7, ...args: any[]) => void - $.proxy((a: A, t: J1, u: J2, v: J3, w: J4, x: J5, y: J6, z: J7) => { }, {}, a); - - // $ExpectType (this: {}, t: J1, u: J2, v: J3, w: J4, x: J5, y: J6, z: J7, ...args: any[]) => void - $.proxy((t: J1, u: J2, v: J3, w: J4, x: J5, y: J6, z: J7) => { }, {}); - - // $ExpectType (this: {}, t: J1, u: J2, v: J3, w: J4, x: J5, y: J6, z: J7, ...args: any[]) => void - $.proxy((a: A, b: B, c: C, d: D, e: E, f: F, g: G, t: J1, u: J2, v: J3, w: J4, x: J5, y: J6, z: J7, _: J8) => { }, {}, a, b, c, d, e, f, g); - - // $ExpectType (this: {}, t: J1, u: J2, v: J3, w: J4, x: J5, y: J6, z: J7, ...args: any[]) => void - $.proxy((a: A, b: B, c: C, d: D, e: E, f: F, t: J1, u: J2, v: J3, w: J4, x: J5, y: J6, z: J7, _: J8) => { }, {}, a, b, c, d, e, f); - - // $ExpectType (this: {}, t: J1, u: J2, v: J3, w: J4, x: J5, y: J6, z: J7, ...args: any[]) => void - $.proxy((a: A, b: B, c: C, d: D, e: E, t: J1, u: J2, v: J3, w: J4, x: J5, y: J6, z: J7, _: J8) => { }, {}, a, b, c, d, e); - - // $ExpectType (this: {}, t: J1, u: J2, v: J3, w: J4, x: J5, y: J6, z: J7, ...args: any[]) => void - $.proxy((a: A, b: B, c: C, d: D, t: J1, u: J2, v: J3, w: J4, x: J5, y: J6, z: J7, _: J8) => { }, {}, a, b, c, d); - - // $ExpectType (this: {}, t: J1, u: J2, v: J3, w: J4, x: J5, y: J6, z: J7, ...args: any[]) => void - $.proxy((a: A, b: B, c: C, t: J1, u: J2, v: J3, w: J4, x: J5, y: J6, z: J7, _: J8) => { }, {}, a, b, c); - - // $ExpectType (this: {}, t: J1, u: J2, v: J3, w: J4, x: J5, y: J6, z: J7, ...args: any[]) => void - $.proxy((a: A, b: B, t: J1, u: J2, v: J3, w: J4, x: J5, y: J6, z: J7, _: J8) => { }, {}, a, b); - - // $ExpectType (this: {}, t: J1, u: J2, v: J3, w: J4, x: J5, y: J6, z: J7, ...args: any[]) => void - $.proxy((a: A, t: J1, u: J2, v: J3, w: J4, x: J5, y: J6, z: J7, _: J8) => { }, {}, a); - - // $ExpectType (this: {}, t: J1, u: J2, v: J3, w: J4, x: J5, y: J6, z: J7, ...args: any[]) => void - $.proxy((t: J1, u: J2, v: J3, w: J4, x: J5, y: J6, z: J7, _: J8) => { }, {}); - - // $ExpectType (this: {}, ...args: any[]) => void - $.proxy((a, b, c, d, e, f, g, h, t: J1, u: J2, v: J3, w: J4, x: J5, y: J6, z: J7, _: J8) => { }, {}, a, b, c, d, e, f, g, h); + // $ExpectType () => void + $.proxy(function(a, b, c, d, e, f, g) { + // $ExpectType JContext + this; + }, context, a, b, c, d, e, f, g); + + // $ExpectType () => void + $.proxy(function(a, b, c, d, e, f) { + // $ExpectType JContext + this; + }, context, a, b, c, d, e, f); + + // $ExpectType () => void + $.proxy(function(a, b, c, d, e) { + // $ExpectType JContext + this; + }, context, a, b, c, d, e); + + // $ExpectType () => void + $.proxy(function(a, b, c, d) { + // $ExpectType JContext + this; + }, context, a, b, c, d); + + // $ExpectType () => void + $.proxy(function(a, b, c) { + // $ExpectType JContext + this; + }, context, a, b, c); + + // $ExpectType () => void + $.proxy(function(a, b) { + // $ExpectType JContext + this; + }, context, a, b); + + // $ExpectType () => void + $.proxy(function(a) { + // $ExpectType JContext + this; + }, context, a); + + // $ExpectType () => void + $.proxy(function() { + // $ExpectType JContext + this; + }, context); + + // $ExpectType (t: J1) => void + $.proxy(function(a: A, b: B, c: C, d: D, e: E, f: F, g: G, t: J1) { + // $ExpectType JContext + this; + }, context, a, b, c, d, e, f, g); + + // $ExpectType (t: J1) => void + $.proxy(function(a: A, b: B, c: C, d: D, e: E, f: F, t: J1) { + // $ExpectType JContext + this; + }, context, a, b, c, d, e, f); + + // $ExpectType (t: J1) => void + $.proxy(function(a: A, b: B, c: C, d: D, e: E, t: J1) { + // $ExpectType JContext + this; + }, context, a, b, c, d, e); + + // $ExpectType (t: J1) => void + $.proxy(function(a: A, b: B, c: C, d: D, t: J1) { + // $ExpectType JContext + this; + }, context, a, b, c, d); + + // $ExpectType (t: J1) => void + $.proxy(function(a: A, b: B, c: C, t: J1) { + // $ExpectType JContext + this; + }, context, a, b, c); + + // $ExpectType (t: J1) => void + $.proxy(function(a: A, b: B, t: J1) { + // $ExpectType JContext + this; + }, context, a, b); + + // $ExpectType (t: J1) => void + $.proxy(function(a: A, t: J1) { + // $ExpectType JContext + this; + }, context, a); + + // $ExpectType (t: J1) => void + $.proxy(function(t: J1) { + // $ExpectType JContext + this; + }, context); + + // $ExpectType (t: J1, u: J2) => void + $.proxy(function(a: A, b: B, c: C, d: D, e: E, f: F, g: G, t: J1, u: J2) { + // $ExpectType JContext + this; + }, context, a, b, c, d, e, f, g); + + // $ExpectType (t: J1, u: J2) => void + $.proxy(function(a: A, b: B, c: C, d: D, e: E, f: F, t: J1, u: J2) { + // $ExpectType JContext + this; + }, context, a, b, c, d, e, f); + + // $ExpectType (t: J1, u: J2) => void + $.proxy(function(a: A, b: B, c: C, d: D, e: E, t: J1, u: J2) { + // $ExpectType JContext + this; + }, context, a, b, c, d, e); + + // $ExpectType (t: J1, u: J2) => void + $.proxy(function(a: A, b: B, c: C, d: D, t: J1, u: J2) { + // $ExpectType JContext + this; + }, context, a, b, c, d); + + // $ExpectType (t: J1, u: J2) => void + $.proxy(function(a: A, b: B, c: C, t: J1, u: J2) { + // $ExpectType JContext + this; + }, context, a, b, c); + + // $ExpectType (t: J1, u: J2) => void + $.proxy(function(a: A, b: B, t: J1, u: J2) { + // $ExpectType JContext + this; + }, context, a, b); + + // $ExpectType (t: J1, u: J2) => void + $.proxy(function(a: A, t: J1, u: J2) { + // $ExpectType JContext + this; + }, context, a); + + // $ExpectType (t: J1, u: J2) => void + $.proxy(function(t: J1, u: J2) { + // $ExpectType JContext + this; + }, context); + + // $ExpectType (t: J1, u: J2, v: J3) => void + $.proxy(function(a: A, b: B, c: C, d: D, e: E, f: F, g: G, t: J1, u: J2, v: J3) { + // $ExpectType JContext + this; + }, context, a, b, c, d, e, f, g); + + // $ExpectType (t: J1, u: J2, v: J3) => void + $.proxy(function(a: A, b: B, c: C, d: D, e: E, f: F, t: J1, u: J2, v: J3) { + // $ExpectType JContext + this; + }, context, a, b, c, d, e, f); + + // $ExpectType (t: J1, u: J2, v: J3) => void + $.proxy(function(a: A, b: B, c: C, d: D, e: E, t: J1, u: J2, v: J3) { + // $ExpectType JContext + this; + }, context, a, b, c, d, e); + + // $ExpectType (t: J1, u: J2, v: J3) => void + $.proxy(function(a: A, b: B, c: C, d: D, t: J1, u: J2, v: J3) { + // $ExpectType JContext + this; + }, context, a, b, c, d); + + // $ExpectType (t: J1, u: J2, v: J3) => void + $.proxy(function(a: A, b: B, c: C, t: J1, u: J2, v: J3) { + // $ExpectType JContext + this; + }, context, a, b, c); + + // $ExpectType (t: J1, u: J2, v: J3) => void + $.proxy(function(a: A, b: B, t: J1, u: J2, v: J3) { + // $ExpectType JContext + this; + }, context, a, b); + + // $ExpectType (t: J1, u: J2, v: J3) => void + $.proxy(function(a: A, t: J1, u: J2, v: J3) { + // $ExpectType JContext + this; + }, context, a); + + // $ExpectType (t: J1, u: J2, v: J3) => void + $.proxy(function(t: J1, u: J2, v: J3) { + // $ExpectType JContext + this; + }, context); + + // $ExpectType (t: J1, u: J2, v: J3, w: J4) => void + $.proxy(function(a: A, b: B, c: C, d: D, e: E, f: F, g: G, t: J1, u: J2, v: J3, w: J4) { + // $ExpectType JContext + this; + }, context, a, b, c, d, e, f, g); + + // $ExpectType (t: J1, u: J2, v: J3, w: J4) => void + $.proxy(function(a: A, b: B, c: C, d: D, e: E, f: F, t: J1, u: J2, v: J3, w: J4) { + // $ExpectType JContext + this; + }, context, a, b, c, d, e, f); + + // $ExpectType (t: J1, u: J2, v: J3, w: J4) => void + $.proxy(function(a: A, b: B, c: C, d: D, e: E, t: J1, u: J2, v: J3, w: J4) { + // $ExpectType JContext + this; + }, context, a, b, c, d, e); + + // $ExpectType (t: J1, u: J2, v: J3, w: J4) => void + $.proxy(function(a: A, b: B, c: C, d: D, t: J1, u: J2, v: J3, w: J4) { + // $ExpectType JContext + this; + }, context, a, b, c, d); + + // $ExpectType (t: J1, u: J2, v: J3, w: J4) => void + $.proxy(function(a: A, b: B, c: C, t: J1, u: J2, v: J3, w: J4) { + // $ExpectType JContext + this; + }, context, a, b, c); + + // $ExpectType (t: J1, u: J2, v: J3, w: J4) => void + $.proxy(function(a: A, b: B, t: J1, u: J2, v: J3, w: J4) { + // $ExpectType JContext + this; + }, context, a, b); + + // $ExpectType (t: J1, u: J2, v: J3, w: J4) => void + $.proxy(function(a: A, t: J1, u: J2, v: J3, w: J4) { + // $ExpectType JContext + this; + }, context, a); + + // $ExpectType (t: J1, u: J2, v: J3, w: J4) => void + $.proxy(function(t: J1, u: J2, v: J3, w: J4) { + // $ExpectType JContext + this; + }, context); + + // $ExpectType (t: J1, u: J2, v: J3, w: J4, x: J5) => void + $.proxy(function(a: A, b: B, c: C, d: D, e: E, f: F, g: G, t: J1, u: J2, v: J3, w: J4, x: J5) { + // $ExpectType JContext + this; + }, context, a, b, c, d, e, f, g); + + // $ExpectType (t: J1, u: J2, v: J3, w: J4, x: J5) => void + $.proxy(function(a: A, b: B, c: C, d: D, e: E, f: F, t: J1, u: J2, v: J3, w: J4, x: J5) { + // $ExpectType JContext + this; + }, context, a, b, c, d, e, f); + + // $ExpectType (t: J1, u: J2, v: J3, w: J4, x: J5) => void + $.proxy(function(a: A, b: B, c: C, d: D, e: E, t: J1, u: J2, v: J3, w: J4, x: J5) { + // $ExpectType JContext + this; + }, context, a, b, c, d, e); + + // $ExpectType (t: J1, u: J2, v: J3, w: J4, x: J5) => void + $.proxy(function(a: A, b: B, c: C, d: D, t: J1, u: J2, v: J3, w: J4, x: J5) { + // $ExpectType JContext + this; + }, context, a, b, c, d); + + // $ExpectType (t: J1, u: J2, v: J3, w: J4, x: J5) => void + $.proxy(function(a: A, b: B, c: C, t: J1, u: J2, v: J3, w: J4, x: J5) { + // $ExpectType JContext + this; + }, context, a, b, c); + + // $ExpectType (t: J1, u: J2, v: J3, w: J4, x: J5) => void + $.proxy(function(a: A, b: B, t: J1, u: J2, v: J3, w: J4, x: J5) { + // $ExpectType JContext + this; + }, context, a, b); + + // $ExpectType (t: J1, u: J2, v: J3, w: J4, x: J5) => void + $.proxy(function(a: A, t: J1, u: J2, v: J3, w: J4, x: J5) { + // $ExpectType JContext + this; + }, context, a); + + // $ExpectType (t: J1, u: J2, v: J3, w: J4, x: J5) => void + $.proxy(function(t: J1, u: J2, v: J3, w: J4, x: J5) { + // $ExpectType JContext + this; + }, context); + + // $ExpectType (t: J1, u: J2, v: J3, w: J4, x: J5, y: J6) => void + $.proxy(function(a: A, b: B, c: C, d: D, e: E, f: F, g: G, t: J1, u: J2, v: J3, w: J4, x: J5, y: J6) { + // $ExpectType JContext + this; + }, context, a, b, c, d, e, f, g); + + // $ExpectType (t: J1, u: J2, v: J3, w: J4, x: J5, y: J6) => void + $.proxy(function(a: A, b: B, c: C, d: D, e: E, f: F, t: J1, u: J2, v: J3, w: J4, x: J5, y: J6) { + // $ExpectType JContext + this; + }, context, a, b, c, d, e, f); + + // $ExpectType (t: J1, u: J2, v: J3, w: J4, x: J5, y: J6) => void + $.proxy(function(a: A, b: B, c: C, d: D, e: E, t: J1, u: J2, v: J3, w: J4, x: J5, y: J6) { + // $ExpectType JContext + this; + }, context, a, b, c, d, e); + + // $ExpectType (t: J1, u: J2, v: J3, w: J4, x: J5, y: J6) => void + $.proxy(function(a: A, b: B, c: C, d: D, t: J1, u: J2, v: J3, w: J4, x: J5, y: J6) { + // $ExpectType JContext + this; + }, context, a, b, c, d); + + // $ExpectType (t: J1, u: J2, v: J3, w: J4, x: J5, y: J6) => void + $.proxy(function(a: A, b: B, c: C, t: J1, u: J2, v: J3, w: J4, x: J5, y: J6) { + // $ExpectType JContext + this; + }, context, a, b, c); + + // $ExpectType (t: J1, u: J2, v: J3, w: J4, x: J5, y: J6) => void + $.proxy(function(a: A, b: B, t: J1, u: J2, v: J3, w: J4, x: J5, y: J6) { + // $ExpectType JContext + this; + }, context, a, b); + + // $ExpectType (t: J1, u: J2, v: J3, w: J4, x: J5, y: J6) => void + $.proxy(function(a: A, t: J1, u: J2, v: J3, w: J4, x: J5, y: J6) { + // $ExpectType JContext + this; + }, context, a); + + // $ExpectType (t: J1, u: J2, v: J3, w: J4, x: J5, y: J6) => void + $.proxy(function(t: J1, u: J2, v: J3, w: J4, x: J5, y: J6) { + // $ExpectType JContext + this; + }, context); + + // $ExpectType (t: J1, u: J2, v: J3, w: J4, x: J5, y: J6, z: J7, ...args: any[]) => void + $.proxy(function(a: A, b: B, c: C, d: D, e: E, f: F, g: G, t: J1, u: J2, v: J3, w: J4, x: J5, y: J6, z: J7) { + // $ExpectType JContext + this; + }, context, a, b, c, d, e, f, g); + + // $ExpectType (t: J1, u: J2, v: J3, w: J4, x: J5, y: J6, z: J7, ...args: any[]) => void + $.proxy(function(a: A, b: B, c: C, d: D, e: E, f: F, t: J1, u: J2, v: J3, w: J4, x: J5, y: J6, z: J7) { + // $ExpectType JContext + this; + }, context, a, b, c, d, e, f); + + // $ExpectType (t: J1, u: J2, v: J3, w: J4, x: J5, y: J6, z: J7, ...args: any[]) => void + $.proxy(function(a: A, b: B, c: C, d: D, e: E, t: J1, u: J2, v: J3, w: J4, x: J5, y: J6, z: J7) { + // $ExpectType JContext + this; + }, context, a, b, c, d, e); + + // $ExpectType (t: J1, u: J2, v: J3, w: J4, x: J5, y: J6, z: J7, ...args: any[]) => void + $.proxy(function(a: A, b: B, c: C, d: D, t: J1, u: J2, v: J3, w: J4, x: J5, y: J6, z: J7) { + // $ExpectType JContext + this; + }, context, a, b, c, d); + + // $ExpectType (t: J1, u: J2, v: J3, w: J4, x: J5, y: J6, z: J7, ...args: any[]) => void + $.proxy(function(a: A, b: B, c: C, t: J1, u: J2, v: J3, w: J4, x: J5, y: J6, z: J7) { + // $ExpectType JContext + this; + }, context, a, b, c); + + // $ExpectType (t: J1, u: J2, v: J3, w: J4, x: J5, y: J6, z: J7, ...args: any[]) => void + $.proxy(function(a: A, b: B, t: J1, u: J2, v: J3, w: J4, x: J5, y: J6, z: J7) { + // $ExpectType JContext + this; + }, context, a, b); + + // $ExpectType (t: J1, u: J2, v: J3, w: J4, x: J5, y: J6, z: J7, ...args: any[]) => void + $.proxy(function(a: A, t: J1, u: J2, v: J3, w: J4, x: J5, y: J6, z: J7) { + // $ExpectType JContext + this; + }, context, a); + + // $ExpectType (t: J1, u: J2, v: J3, w: J4, x: J5, y: J6, z: J7, ...args: any[]) => void + $.proxy(function(t: J1, u: J2, v: J3, w: J4, x: J5, y: J6, z: J7) { + // $ExpectType JContext + this; + }, context); + + // $ExpectType (t: J1, u: J2, v: J3, w: J4, x: J5, y: J6, z: J7, ...args: any[]) => void + $.proxy(function(a: A, b: B, c: C, d: D, e: E, f: F, g: G, t: J1, u: J2, v: J3, w: J4, x: J5, y: J6, z: J7, _: J8) { + // $ExpectType JContext + this; + }, context, a, b, c, d, e, f, g); + + // $ExpectType (t: J1, u: J2, v: J3, w: J4, x: J5, y: J6, z: J7, ...args: any[]) => void + $.proxy(function(a: A, b: B, c: C, d: D, e: E, f: F, t: J1, u: J2, v: J3, w: J4, x: J5, y: J6, z: J7, _: J8) { + // $ExpectType JContext + this; + }, context, a, b, c, d, e, f); + + // $ExpectType (t: J1, u: J2, v: J3, w: J4, x: J5, y: J6, z: J7, ...args: any[]) => void + $.proxy(function(a: A, b: B, c: C, d: D, e: E, t: J1, u: J2, v: J3, w: J4, x: J5, y: J6, z: J7, _: J8) { + // $ExpectType JContext + this; + }, context, a, b, c, d, e); + + // $ExpectType (t: J1, u: J2, v: J3, w: J4, x: J5, y: J6, z: J7, ...args: any[]) => void + $.proxy(function(a: A, b: B, c: C, d: D, t: J1, u: J2, v: J3, w: J4, x: J5, y: J6, z: J7, _: J8) { + // $ExpectType JContext + this; + }, context, a, b, c, d); + + // $ExpectType (t: J1, u: J2, v: J3, w: J4, x: J5, y: J6, z: J7, ...args: any[]) => void + $.proxy(function(a: A, b: B, c: C, t: J1, u: J2, v: J3, w: J4, x: J5, y: J6, z: J7, _: J8) { + // $ExpectType JContext + this; + }, context, a, b, c); + + // $ExpectType (t: J1, u: J2, v: J3, w: J4, x: J5, y: J6, z: J7, ...args: any[]) => void + $.proxy(function(a: A, b: B, t: J1, u: J2, v: J3, w: J4, x: J5, y: J6, z: J7, _: J8) { + // $ExpectType JContext + this; + }, context, a, b); + + // $ExpectType (t: J1, u: J2, v: J3, w: J4, x: J5, y: J6, z: J7, ...args: any[]) => void + $.proxy(function(a: A, t: J1, u: J2, v: J3, w: J4, x: J5, y: J6, z: J7, _: J8) { + // $ExpectType JContext + this; + }, context, a); + + // $ExpectType (t: J1, u: J2, v: J3, w: J4, x: J5, y: J6, z: J7, ...args: any[]) => void + $.proxy(function(t: J1, u: J2, v: J3, w: J4, x: J5, y: J6, z: J7, _: J8) { + // $ExpectType JContext + this; + }, context); + + // $ExpectType (...args: any[]) => void + $.proxy(function(a, b, c, d, e, f, g, h, t: J1, u: J2, v: J3, w: J4, x: J5, y: J6, z: J7, _: J8) { + // $ExpectType JContext + this; + }, context, a, b, c, d, e, f, g, h); } - // $ExpectType (this: { myFunc: () => undefined; }, ...args: any[]) => any + // $ExpectType (...args: any[]) => any $.proxy({ myFunc: $.noop }, 'myFunc', 1, 2); - // $ExpectType (this: { myFunc: () => undefined; }, ...args: any[]) => any + // $ExpectType (...args: any[]) => any $.proxy({ myFunc: $.noop }, 'myFunc'); }