(value: T, array: T[], fromIndex?: number): number;
/**
* Determine whether the argument is an array.
* @param obj Object to test whether or not it is an array.
* @see \`{@link https://api.jquery.com/jQuery.isArray/ }\`
* @since 1.3
* @deprecated Deprecated since 3.2. Use \`{@link ArrayConstructor.isArray Array.isArray}\`.
* @example ````Finds out if the parameter is an array.
```html
jQuery.isArray demo
Is [] an Array?
```
*/
isArray(obj: any): obj is any[];
/**
* Check to see if an object is empty (contains no enumerable properties).
* @param obj The object that will be checked to see if it's empty.
* @see \`{@link https://api.jquery.com/jQuery.isEmptyObject/ }\`
* @since 1.4
* @example ````Check an object to see if it's empty.
```javascript
jQuery.isEmptyObject({}); // true
jQuery.isEmptyObject({ foo: "bar" }); // false
```
*/
isEmptyObject(obj: any): boolean;
/**
* Determine if the argument passed is a JavaScript function object.
* @param obj Object to test whether or not it is a function.
* @see \`{@link https://api.jquery.com/jQuery.isFunction/ }\`
* @since 1.2
* @deprecated Deprecated since 3.3. Use `typeof x === "function"`.
* @example ````Test a few parameter examples.
```html
jQuery.isFunction demo
jQuery.isFunction( objs[ 0 ] ) =
jQuery.isFunction( objs[ 1 ] ) =
jQuery.isFunction( objs[ 2 ] ) =
jQuery.isFunction( objs[ 3 ] ) =
jQuery.isFunction( objs[ 4 ] ) =
```
* @example ````Finds out if the parameter is a function.
```javascript
$.isFunction(function() {});
```
*/
// tslint:disable-next-line:ban-types
isFunction(obj: any): obj is Function;
/**
* Determines whether its argument represents a JavaScript number.
* @param value The value to be tested.
* @see \`{@link https://api.jquery.com/jQuery.isNumeric/ }\`
* @since 1.7
* @deprecated Deprecated since 3.3. Internal. See \`{@link https://github.com/jquery/jquery/issues/2960 }\`.
* @example ````Sample return values of $.isNumeric with various inputs.
```javascript
// true (numeric)
$.isNumeric( "-10" )
$.isNumeric( "0" )
$.isNumeric( 0xFF )
$.isNumeric( "0xFF" )
$.isNumeric( "8e5" )
$.isNumeric( "3.1415" )
$.isNumeric( +10 )
$.isNumeric( 0144 )
// false (non-numeric)
$.isNumeric( "-0x42" )
$.isNumeric( "7.2acdgs" )
$.isNumeric( "" )
$.isNumeric( {} )
$.isNumeric( NaN )
$.isNumeric( null )
$.isNumeric( true )
$.isNumeric( Infinity )
$.isNumeric( undefined )
```
*/
isNumeric(value: any): boolean;
/**
* Check to see if an object is a plain object (created using "{}" or "new Object").
* @param obj The object that will be checked to see if it's a plain object.
* @see \`{@link https://api.jquery.com/jQuery.isPlainObject/ }\`
* @since 1.4
* @example ````Check an object to see if it's a plain object.
```javascript
jQuery.isPlainObject({}) // true
jQuery.isPlainObject( "test" ) // false
```
*/
isPlainObject(obj: any): boolean;
/**
* Determine whether the argument is a window.
* @param obj Object to test whether or not it is a window.
* @see \`{@link https://api.jquery.com/jQuery.isWindow/ }\`
* @since 1.4.3
* @deprecated Deprecated since 3.3. Internal. See \`{@link https://github.com/jquery/jquery/issues/3629 }\`.
*
* **Cause**: This method returns `true` if its argument is thought to be a `window` element. It was created for internal use and is not a reliable way of detecting `window` for public needs.
*
* **Solution**: Remove any use of `jQuery.isWindow()` from code. If it is truly needed it can be replaced with a check for `obj != null && obj === obj.window` which was the test used inside this method.
* @example ````Finds out if the parameter is a window.
```html
jQuery.isWindow demo
Is 'window' a window?
```
*/
isWindow(obj: any): obj is Window;
/**
* Check to see if a DOM node is within an XML document (or is an XML document).
* @param node The DOM node that will be checked to see if it's in an XML document.
* @see \`{@link https://api.jquery.com/jQuery.isXMLDoc/ }\`
* @since 1.1.4
* @example ````Check an object to see if it's in an XML document.
```javascript
jQuery.isXMLDoc( document ) // false
jQuery.isXMLDoc( document.body ) // false
```
*/
isXMLDoc(node: Node): boolean;
/**
* Convert an array-like object into a true JavaScript array.
* @param obj Any object to turn into a native Array.
* @see \`{@link https://api.jquery.com/jQuery.makeArray/ }\`
* @since 1.2
* @example ````Turn a collection of HTMLElements into an Array of them.
```html
jQuery.makeArray demo
First
Second
Third
Fourth
```
* @example ````Turn a jQuery object into an array
```javascript
var obj = $( "li" );
var arr = $.makeArray( obj );
```
*/
makeArray(obj: ArrayLike): T[];
/**
* Translate all items in an array or object to new array of items.
* @param array The Array to translate.
* @param callback The function to process each item against. The first argument to the function is the array item, the
* second argument is the index in array The function can return any value. A returned array will be
* flattened into the resulting array. Within the function, this refers to the global (window) object.
* @see \`{@link https://api.jquery.com/jQuery.map/ }\`
* @since 1.0
* @example ````Use $.map() to change the values of an array.
```html
jQuery.map demo
```
* @example ````Map the original array to a new one and add 4 to each value.
```javascript
$.map( [ 0, 1, 2 ], function( n ) {
return n + 4;
});
```
* @example ````Map the original array to a new one, adding 1 to each value if it is bigger then zero and removing it if not.
```javascript
$.map( [ 0, 1, 2 ], function( n ) {
return n > 0 ? n + 1 : null;
});
```
* @example ````Map the original array to a new one; each element is added with its original value and the value plus one.
```javascript
$.map( [ 0, 1, 2 ], function( n ) {
return [ n, n + 1 ];
});
```
* @example ````Map the original array to a new one; each element is squared.
```javascript
$.map( [ 0, 1, 2, 3 ], function( a ) {
return a * a;
});
```
* @example ````Map the original array to a new one, removing numbers less than 50 by returning null and subtracting 45 from the rest.
```javascript
$.map( [ 0, 1, 52, 97 ], function( a ) {
return (a > 50 ? a - 45 : null);
});
```
* @example ````Augment the resulting array by returning an array inside the function.
```javascript
var array = [ 0, 1, 52, 97 ];
array = $.map( array, function( a, index ) {
return [ a - 45, index ];
});
```
*/
map(array: T[], callback: (this: Window, elementOfArray: T, indexInArray: number) => JQuery.TypeOrArray | null | undefined): TReturn[];
/**
* Translate all items in an array or object to new array of items.
* @param obj The Object to translate.
* @param callback The function to process each item against. The first argument to the function is the value; the
* second argument is the key of the object property. The function can return any value to add to the
* array. A returned array will be flattened into the resulting array. Within the function, this refers
* to the global (window) object.
* @see \`{@link https://api.jquery.com/jQuery.map/ }\`
* @since 1.6
* @example ````Map the original object to a new array and double each value.
```javascript
var dimensions = { width: 10, height: 15, length: 20 };
dimensions = $.map( dimensions, function( value, index ) {
return value * 2;
});
```
* @example ````Map an object's keys to an array.
```javascript
var dimensions = { width: 10, height: 15, length: 20 };
var keys = $.map( dimensions, function( value, key ) {
return key;
});
```
*/
map(obj: T, callback: (this: Window, propertyOfObject: T[K], key: K) => JQuery.TypeOrArray | null | undefined): TReturn[];
/**
* Merge the contents of two arrays together into the first array.
* @param first The first array-like object to merge, the elements of second added.
* @param second The second array-like object to merge into the first, unaltered.
* @see \`{@link https://api.jquery.com/jQuery.merge/ }\`
* @since 1.0
* @example ````Merges two arrays, altering the first argument.
```javascript
$.merge( [ 0, 1, 2 ], [ 2, 3, 4 ] )
```
* @example ````Merges two arrays, altering the first argument.
```javascript
$.merge( [ 3, 2, 1 ], [ 4, 3, 2 ] )
```
* @example ````Merges two arrays, but uses a copy, so the original isn't altered.
```javascript
var first = [ "a", "b", "c" ];
var second = [ "d", "e", "f" ];
$.merge( $.merge( [], first ), second );
```
*/
merge(first: ArrayLike, second: ArrayLike): Array;
/**
* Relinquish jQuery's control of the $ variable.
* @param removeAll A Boolean indicating whether to remove all jQuery variables from the global scope (including jQuery itself).
* @see \`{@link https://api.jquery.com/jQuery.noConflict/ }\`
* @since 1.0
* @example ````Map the original object that was referenced by $ back to $.
```javascript
jQuery.noConflict();
// Do something with jQuery
jQuery( "div p" ).hide();
// Do something with another library's $()
$( "content" ).style.display = "none";
```
* @example ````Revert the $ alias and then create and execute a function to provide the $ as a jQuery alias inside the function's scope. Inside the function the original $ object is not available. This works well for most plugins that don't rely on any other library.
```javascript
jQuery.noConflict();
(function( $ ) {
$(function() {
// More code using $ as alias to jQuery
});
})(jQuery);
// Other code using $ as an alias to the other library
```
* @example ````Create a different alias instead of jQuery to use in the rest of the script.
```javascript
var j = jQuery.noConflict();
// Do something with jQuery
j( "div p" ).hide();
// Do something with another library's $()
$( "content" ).style.display = "none";
```
* @example ````Completely move jQuery to a new namespace in another object.
```javascript
var dom = {};
dom.query = jQuery.noConflict( true );
```
* @example ````Load two versions of jQuery (not recommended). Then, restore jQuery's globally scoped variables to the first loaded jQuery.
```html
jQuery.noConflict demo
Before $.noConflict(true)
```
*/
noConflict(removeAll?: boolean): this;
/**
* @deprecated Deprecated since 3.2.
*
* **Cause**: This public but never-documented method has been deprecated as of jQuery 3.2.0.
*
* **Solution**: Replace calls such as `jQuery.nodeName( elem, "div" )` with a test such as `elem.nodeName.toLowerCase() === "div"`.
*/
nodeName(elem: Node, name: string): boolean;
/**
* An empty function.
* @see \`{@link https://api.jquery.com/jQuery.noop/ }\`
* @since 1.4
*/
noop(): undefined;
/**
* Return a number representing the current time.
* @see \`{@link https://api.jquery.com/jQuery.now/ }\`
* @since 1.4.3
* @deprecated Deprecated since 3.3. Use \`{@link DateConstructor.now Date.now}\`.
*/
now(): number;
/**
* Create a serialized representation of an array, a plain object, or a jQuery object suitable for use in a URL query string or Ajax request. In case a jQuery object is passed, it should contain input elements with name/value properties.
* @param obj An array, a plain object, or a jQuery object to serialize.
* @param traditional A Boolean indicating whether to perform a traditional "shallow" serialization.
* @see \`{@link https://api.jquery.com/jQuery.param/ }\`
* @since 1.2
* @since 1.4
* @example ````Serialize a key/value object.
```html
jQuery.param demo
```
* @example ````Serialize a few complex objects
```html
jQuery.param demo
```
*/
param(obj: any[] | JQuery.PlainObject | JQuery, traditional?: boolean): string;
/**
* Parses a string into an array of DOM nodes.
* @param data HTML string to be parsed
* @param context Document element to serve as the context in which the HTML fragment will be created
* @param keepScripts A Boolean indicating whether to include scripts passed in the HTML string
* @see \`{@link https://api.jquery.com/jQuery.parseHTML/ }\`
* @since 1.8
*/
parseHTML(data: string, context: Document | null | undefined, keepScripts: boolean): JQuery.Node[];
/**
* Parses a string into an array of DOM nodes.
* @param data HTML string to be parsed
* @param context_keepScripts _@param_ `context_keepScripts`
*
* * `context` — Document element to serve as the context in which the HTML fragment will be created
* * `keepScripts` — A Boolean indicating whether to include scripts passed in the HTML string
* @see \`{@link https://api.jquery.com/jQuery.parseHTML/ }\`
* @since 1.8
* @example ````Create an array of DOM nodes using an HTML string and insert it into a div.
```html
jQuery.parseHTML demo
Content:
```
*/
parseHTML(data: string, context_keepScripts?: Document | null | boolean): JQuery.Node[];
/**
* Takes a well-formed JSON string and returns the resulting JavaScript value.
* @param json The JSON string to parse.
* @see \`{@link https://api.jquery.com/jQuery.parseJSON/ }\`
* @since 1.4.1
* @deprecated Deprecated since 3.0. Use \`{@link JSON.parse }\`.
*
* **Cause**: The `jQuery.parseJSON` method in recent jQuery is identical to the native `JSON.parse`. As of jQuery 3.0 `jQuery.parseJSON` is deprecated.
*
* **Solution**: Replace any use of `jQuery.parseJSON` with `JSON.parse`.
* @example ````Parse a JSON string.
```javascript
var obj = jQuery.parseJSON( '{ "name": "John" }' );
alert( obj.name === "John" );
```
*/
parseJSON(json: string): any;
/**
* Parses a string into an XML document.
* @param data a well-formed XML string to be parsed
* @see \`{@link https://api.jquery.com/jQuery.parseXML/ }\`
* @since 1.5
* @example ````Create a jQuery object using an XML string and obtain the value of the title node.
```html
jQuery.parseXML demo
```
*/
parseXML(data: string): XMLDocument;
/**
* Load data from the server using a HTTP POST request.
* @param url A string containing the URL to which the request is sent.
* @param data A plain object or string that is sent to the server with the request.
* @param success A callback function that is executed if the request succeeds. Required if dataType is provided, but
* can be null in that case.
* @param dataType The type of data expected from the server. Default: Intelligent Guess (xml, json, script, text, html).
* @see \`{@link https://api.jquery.com/jQuery.post/ }\`
* @since 1.0
* @example ````Post to the test.php page and get content which has been returned in json format (<?php echo json_encode(array("name"=>"John","time"=>"2pm")); ?>).
```javascript
$.post( "test.php", { func: "getNameAndTime" }, function( data ) {
console.log( data.name ); // John
console.log( data.time ); // 2pm
}, "json");
```
*/
post(url: string,
data: JQuery.PlainObject | string,
success: JQuery.jqXHR.DoneCallback | null,
dataType?: string): JQuery.jqXHR;
/**
* Load data from the server using a HTTP POST request.
* @param url A string containing the URL to which the request is sent.
* @param success_data _@param_ `success_data`
*
* * `success` — A callback function that is executed if the request succeeds. Required if `dataType` is provided,
* but can be `null` in that case.
* * `data` — A plain object or string that is sent to the server with the request.
* @param dataType The type of data expected from the server. Default: Intelligent Guess (xml, json, script, text, html).
* @see \`{@link https://api.jquery.com/jQuery.post/ }\`
* @since 1.0
*/
post(url: string,
data_success: JQuery.PlainObject | string | JQuery.jqXHR.DoneCallback | null,
dataType: string): JQuery.jqXHR;
/**
* Load data from the server using a HTTP POST request.
* @param url A string containing the URL to which the request is sent.
* @param success_data _@param_ `success_data`
*
* * `success` — A callback function that is executed if the request succeeds. Required if `dataType` is provided,
* but can be `null` in that case.
* * `data` — A plain object or string that is sent to the server with the request.
* @see \`{@link https://api.jquery.com/jQuery.post/ }\`
* @since 1.0
* @example ````Request the test.php page and send some additional data along (while still ignoring the return results).
```javascript
$.post( "test.php", { name: "John", time: "2pm" } );
```
* @example ````Pass arrays of data to the server (while still ignoring the return results).
```javascript
$.post( "test.php", { 'choices[]': [ "Jon", "Susan" ] } );
```
* @example ````Send form data using Ajax requests
```javascript
$.post( "test.php", $( "#testform" ).serialize() );
```
* @example ````Alert the results from requesting test.php (HTML or XML, depending on what was returned).
```javascript
$.post( "test.php", function( data ) {
alert( "Data Loaded: " + data );
});
```
* @example ````Alert the results from requesting test.php with an additional payload of data (HTML or XML, depending on what was returned).
```javascript
$.post( "test.php", { name: "John", time: "2pm" })
.done(function( data ) {
alert( "Data Loaded: " + data );
});
```
* @example ````Post a form using Ajax and put results in a div
```html
jQuery.post demo
```
*/
post(url: string,
success_data: JQuery.jqXHR.DoneCallback | JQuery.PlainObject | string): JQuery.jqXHR;
/**
* Load data from the server using a HTTP POST request.
* @param url_settings _@param_ `url_settings`
*
* * `url` — A string containing the URL to which the request is sent.
* * `settings` — A set of key/value pairs that configure the Ajax request. All properties except for `url` are optional.
* A default can be set for any option with \`{@link ajaxSetup $.ajaxSetup()}\`. See \`{@link https://api.jquery.com/jquery.ajax/#jQuery-ajax-settings jQuery.ajax( settings )}\`
* for a complete list of all settings. Type will automatically be set to `POST`.
* @see \`{@link https://api.jquery.com/jQuery.post/ }\`
* @since 1.0
* @since 1.12
* @since 2.2
* @example ````Request the test.php page, but ignore the return results.
```javascript
$.post( "test.php" );
```
*/
post(url_settings?: string | JQuery.UrlAjaxSettings): JQuery.jqXHR;
// region proxy
// #region proxy
// region (funсtion, null | undefined)
// #region (funсtion, null | undefined)
// region 0 to 7 additional arguments
// #region 0 to 7 additional arguments
// region 0 parameters
// #region 0 parameters
/**
* Takes a function and returns a new one that will always have a particular context.
* @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(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 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(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 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(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 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(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 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(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 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(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 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(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 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(funсtion: () => TReturn,
context: null | undefined): () => TReturn;
// #endregion
// region 1 parameters
// #region 1 parameters
/**
* Takes a function and returns a new one that will always have a particular context.
* @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(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 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(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 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(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 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(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 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(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 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(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 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(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 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(funсtion: (t: T) => TReturn,
context: null | undefined): (t: T) => TReturn;
// #endregion
// region 2 parameters
// #region 2 parameters
/**
* Takes a function and returns a new one that will always have a particular context.
* @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(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 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(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 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(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 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(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 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(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 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(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 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(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 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(funсtion: (t: T, u: U) => TReturn,
context: null | undefined): (t: T, u: U) => TReturn;
// #endregion
// region 3 parameters
// #region 3 parameters
/**
* Takes a function and returns a new one that will always have a particular context.
* @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(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 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(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 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(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 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(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 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(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 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(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 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(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 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(funсtion: (t: T, u: U, v: V) => TReturn,
context: null | undefined): (t: T, u: U, v: V) => TReturn;
// #endregion
// region 4 parameters
// #region 4 parameters
/**
* Takes a function and returns a new one that will always have a particular context.
* @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(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 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(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 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(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 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(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 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(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 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(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 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(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 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(funсtion: (t: T, u: U, v: V, w: W) => TReturn,
context: null | undefined): (t: T, u: U, v: V, w: W) => TReturn;
// #endregion
// region 5 parameters
// #region 5 parameters
/**
* Takes a function and returns a new one that will always have a particular context.
* @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(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 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(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 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(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 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(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 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(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 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(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 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(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 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(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
// region 6 parameters
// #region 6 parameters
/**
* Takes a function and returns a new one that will always have a particular context.
* @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(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 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(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 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(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 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(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 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(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 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(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 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(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 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(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
// region 7+ parameters
// #region 7+ parameters
/**
* Takes a function and returns a new one that will always have a particular context.
* @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(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 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(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 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(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 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(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 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(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 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(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 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(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 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(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
// #endregion
// region 8+ additional arguments
// #region 8+ additional arguments
/**
* Takes a function and returns a new one that will always have a particular context.
* @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(funсtion: (...args: any[]) => TReturn,
context: null | undefined,
...additionalArguments: any[]): (...args: any[]) => TReturn;
// #endregion
// #endregion
// region (funсtion, context)
// #region (funсtion, context)
// region 0 to 7 additional arguments
// #region 0 to 7 additional arguments
// region 0 parameters
// #region 0 parameters
/**
* Takes a function and returns a new one that will always have a particular context.
* @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
* @deprecated Deprecated since 3.3. Use \`{@link Function#bind }\`.
* @example ````Change the context of functions bound to a click handler using the "function, context" signature. Unbind the first handler after first click.
```html
jQuery.proxy demo
```
* @example ````Change the context of a function bound to the click handler,
```html
jQuery.proxy demo
```
*/
proxy(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): () => TReturn;
/**
* Takes a function and returns a new one that will always have a particular context.
* @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
* @deprecated Deprecated since 3.3. Use \`{@link Function#bind }\`.
* @example ````Change the context of functions bound to a click handler using the "function, context" signature. Unbind the first handler after first click.
```html
jQuery.proxy demo
```
* @example ````Change the context of a function bound to the click handler,
```html
jQuery.proxy demo
```
*/
proxy(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): () => TReturn;
/**
* Takes a function and returns a new one that will always have a particular context.
* @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
* @deprecated Deprecated since 3.3. Use \`{@link Function#bind }\`.
* @example ````Change the context of functions bound to a click handler using the "function, context" signature. Unbind the first handler after first click.
```html
jQuery.proxy demo
```
* @example ````Change the context of a function bound to the click handler,
```html
jQuery.proxy demo
```
*/
proxy(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): () => TReturn;
/**
* Takes a function and returns a new one that will always have a particular context.
* @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
* @deprecated Deprecated since 3.3. Use \`{@link Function#bind }\`.
* @example ````Change the context of functions bound to a click handler using the "function, context" signature. Unbind the first handler after first click.
```html
jQuery.proxy demo
```
* @example ````Change the context of a function bound to the click handler,
```html
jQuery.proxy demo
```
*/
proxy(funсtion: (this: TContext, a: A, b: B, c: C, d: D) => TReturn,
context: TContext,
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 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
* @deprecated Deprecated since 3.3. Use \`{@link Function#bind }\`.
* @example ````Change the context of functions bound to a click handler using the "function, context" signature. Unbind the first handler after first click.
```html
jQuery.proxy demo
```
* @example ````Change the context of a function bound to the click handler,
```html
jQuery.proxy demo
```
*/
proxy(funсtion: (this: TContext, a: A, b: B, c: C) => TReturn,
context: TContext,
a: A, b: B, c: C): () => TReturn;
/**
* Takes a function and returns a new one that will always have a particular context.
* @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
* @deprecated Deprecated since 3.3. Use \`{@link Function#bind }\`.
* @example ````Change the context of functions bound to a click handler using the "function, context" signature. Unbind the first handler after first click.
```html
jQuery.proxy demo
```
* @example ````Change the context of a function bound to the click handler,
```html
jQuery.proxy demo
```
*/
proxy(funсtion: (this: TContext, a: A, b: B) => TReturn,
context: TContext,
a: A, b: B): () => TReturn;
/**
* Takes a function and returns a new one that will always have a particular context.
* @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
* @deprecated Deprecated since 3.3. Use \`{@link Function#bind }\`.
* @example ````Change the context of functions bound to a click handler using the "function, context" signature. Unbind the first handler after first click.
```html
jQuery.proxy demo
```
* @example ````Change the context of a function bound to the click handler,
```html
jQuery.proxy demo
```
*/
proxy(funсtion: (this: TContext, a: A) => TReturn,
context: TContext,
a: A): () => TReturn;
/**
* Takes a function and returns a new one that will always have a particular context.
* @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
* @since 1.6
* @deprecated Deprecated since 3.3. Use \`{@link Function#bind }\`.
* @example ````Change the context of functions bound to a click handler using the "function, context" signature. Unbind the first handler after first click.
```html
jQuery.proxy demo
```
* @example ````Change the context of a function bound to the click handler,
```html
jQuery.proxy demo
```
*/
proxy(funсtion: (this: TContext) => TReturn,
context: TContext): () => TReturn;
// #endregion
// region 1 parameters
// #region 1 parameters
/**
* Takes a function and returns a new one that will always have a particular context.
* @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
* @deprecated Deprecated since 3.3. Use \`{@link Function#bind }\`.
* @example ````Change the context of functions bound to a click handler using the "function, context" signature. Unbind the first handler after first click.
```html
jQuery.proxy demo
```
* @example ````Change the context of a function bound to the click handler,
```html
jQuery.proxy demo
```
*/
proxy(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): (t: T) => TReturn;
/**
* Takes a function and returns a new one that will always have a particular context.
* @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
* @deprecated Deprecated since 3.3. Use \`{@link Function#bind }\`.
* @example ````Change the context of functions bound to a click handler using the "function, context" signature. Unbind the first handler after first click.
```html
jQuery.proxy demo
```
* @example ````Change the context of a function bound to the click handler,
```html
jQuery.proxy demo
```
*/
proxy(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): (t: T) => TReturn;
/**
* Takes a function and returns a new one that will always have a particular context.
* @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
* @deprecated Deprecated since 3.3. Use \`{@link Function#bind }\`.
* @example ````Change the context of functions bound to a click handler using the "function, context" signature. Unbind the first handler after first click.
```html
jQuery.proxy demo
```
* @example ````Change the context of a function bound to the click handler,
```html
jQuery.proxy demo
```
*/
proxy(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): (t: T) => TReturn;
/**
* Takes a function and returns a new one that will always have a particular context.
* @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
* @deprecated Deprecated since 3.3. Use \`{@link Function#bind }\`.
* @example ````Change the context of functions bound to a click handler using the "function, context" signature. Unbind the first handler after first click.
```html
jQuery.proxy demo
```
* @example ````Change the context of a function bound to the click handler,
```html
jQuery.proxy demo
```
*/
proxy(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): (t: T) => TReturn;
/**
* Takes a function and returns a new one that will always have a particular context.
* @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
* @deprecated Deprecated since 3.3. Use \`{@link Function#bind }\`.
* @example ````Change the context of functions bound to a click handler using the "function, context" signature. Unbind the first handler after first click.
```html
jQuery.proxy demo
```
* @example ````Change the context of a function bound to the click handler,
```html
jQuery.proxy demo
```
*/
proxy(funсtion: (this: TContext, a: A, b: B, c: C,
t: T) => TReturn,
context: TContext,
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 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
* @deprecated Deprecated since 3.3. Use \`{@link Function#bind }\`.
* @example ````Change the context of functions bound to a click handler using the "function, context" signature. Unbind the first handler after first click.
```html
jQuery.proxy demo
```
* @example ````Change the context of a function bound to the click handler,
```html
jQuery.proxy demo
```
*/
proxy(funсtion: (this: TContext, a: A, b: B,
t: T) => TReturn,
context: TContext,
a: A, b: B): (t: T) => TReturn;
/**
* Takes a function and returns a new one that will always have a particular context.
* @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
* @deprecated Deprecated since 3.3. Use \`{@link Function#bind }\`.
* @example ````Change the context of functions bound to a click handler using the "function, context" signature. Unbind the first handler after first click.
```html
jQuery.proxy demo
```
* @example ````Change the context of a function bound to the click handler,
```html
jQuery.proxy demo
```
*/
proxy(funсtion: (this: TContext, a: A,
t: T) => TReturn,
context: TContext,
a: A): (t: T) => TReturn;
/**
* Takes a function and returns a new one that will always have a particular context.
* @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
* @since 1.6
* @deprecated Deprecated since 3.3. Use \`{@link Function#bind }\`.
* @example ````Change the context of functions bound to a click handler using the "function, context" signature. Unbind the first handler after first click.
```html
jQuery.proxy demo
```
* @example ````Change the context of a function bound to the click handler,
```html
jQuery.proxy demo
```
*/
proxy(funсtion: (this: TContext, t: T) => TReturn,
context: TContext): (t: T) => TReturn;
// #endregion
// region 2 parameters
// #region 2 parameters
/**
* Takes a function and returns a new one that will always have a particular context.
* @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
* @deprecated Deprecated since 3.3. Use \`{@link Function#bind }\`.
* @example ````Change the context of functions bound to a click handler using the "function, context" signature. Unbind the first handler after first click.
```html
jQuery.proxy demo
```
* @example ````Change the context of a function bound to the click handler,
```html
jQuery.proxy demo
```
*/
proxy(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): (t: T, u: U) => TReturn;
/**
* Takes a function and returns a new one that will always have a particular context.
* @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
* @deprecated Deprecated since 3.3. Use \`{@link Function#bind }\`.
* @example ````Change the context of functions bound to a click handler using the "function, context" signature. Unbind the first handler after first click.
```html
jQuery.proxy demo
```
* @example ````Change the context of a function bound to the click handler,
```html
jQuery.proxy demo
```
*/
proxy(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): (t: T, u: U) => TReturn;
/**
* Takes a function and returns a new one that will always have a particular context.
* @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
* @deprecated Deprecated since 3.3. Use \`{@link Function#bind }\`.
* @example ````Change the context of functions bound to a click handler using the "function, context" signature. Unbind the first handler after first click.
```html
jQuery.proxy demo
```
* @example ````Change the context of a function bound to the click handler,
```html
jQuery.proxy demo
```
*/
proxy(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): (t: T, u: U) => TReturn;
/**
* Takes a function and returns a new one that will always have a particular context.
* @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
* @deprecated Deprecated since 3.3. Use \`{@link Function#bind }\`.
* @example ````Change the context of functions bound to a click handler using the "function, context" signature. Unbind the first handler after first click.
```html
jQuery.proxy demo
```
* @example ````Change the context of a function bound to the click handler,
```html
jQuery.proxy demo
```
*/
proxy(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): (t: T, u: U) => TReturn;
/**
* Takes a function and returns a new one that will always have a particular context.
* @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
* @deprecated Deprecated since 3.3. Use \`{@link Function#bind }\`.
* @example ````Change the context of functions bound to a click handler using the "function, context" signature. Unbind the first handler after first click.
```html
jQuery.proxy demo
```
* @example ````Change the context of a function bound to the click handler,
```html
jQuery.proxy demo
```
*/
proxy(funсtion: (this: TContext, a: A, b: B, c: C,
t: T, u: U) => TReturn,
context: TContext,
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 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
* @deprecated Deprecated since 3.3. Use \`{@link Function#bind }\`.
* @example ````Change the context of functions bound to a click handler using the "function, context" signature. Unbind the first handler after first click.
```html
jQuery.proxy demo
```
* @example ````Change the context of a function bound to the click handler,
```html
jQuery.proxy demo
```
*/
proxy(funсtion: (this: TContext, a: A, b: B,
t: T, u: U) => TReturn,
context: TContext,
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 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
* @deprecated Deprecated since 3.3. Use \`{@link Function#bind }\`.
* @example ````Change the context of functions bound to a click handler using the "function, context" signature. Unbind the first handler after first click.
```html
jQuery.proxy demo
```
* @example ````Change the context of a function bound to the click handler,
```html
jQuery.proxy demo
```
*/
proxy(funсtion: (this: TContext, a: A,
t: T, u: U) => TReturn,
context: TContext,
a: A): (t: T, u: U) => TReturn;
/**
* Takes a function and returns a new one that will always have a particular context.
* @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
* @since 1.6
* @deprecated Deprecated since 3.3. Use \`{@link Function#bind }\`.
* @example ````Change the context of functions bound to a click handler using the "function, context" signature. Unbind the first handler after first click.
```html
jQuery.proxy demo
```
* @example ````Change the context of a function bound to the click handler,
```html
jQuery.proxy demo
```
*/
proxy(funсtion: (this: TContext, t: T, u: U) => TReturn,
context: TContext): (t: T, u: U) => TReturn;
// #endregion
// region 3 parameters
// #region 3 parameters
/**
* Takes a function and returns a new one that will always have a particular context.
* @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
* @deprecated Deprecated since 3.3. Use \`{@link Function#bind }\`.
* @example ````Change the context of functions bound to a click handler using the "function, context" signature. Unbind the first handler after first click.
```html
jQuery.proxy demo
```
* @example ````Change the context of a function bound to the click handler,
```html
jQuery.proxy demo
```
*/
proxy(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): (t: T, u: U, v: V) => TReturn;
/**
* Takes a function and returns a new one that will always have a particular context.
* @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
* @deprecated Deprecated since 3.3. Use \`{@link Function#bind }\`.
* @example ````Change the context of functions bound to a click handler using the "function, context" signature. Unbind the first handler after first click.
```html
jQuery.proxy demo
```
* @example ````Change the context of a function bound to the click handler,
```html
jQuery.proxy demo
```
*/
proxy(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): (t: T, u: U, v: V) => TReturn;
/**
* Takes a function and returns a new one that will always have a particular context.
* @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
* @deprecated Deprecated since 3.3. Use \`{@link Function#bind }\`.
* @example ````Change the context of functions bound to a click handler using the "function, context" signature. Unbind the first handler after first click.
```html
jQuery.proxy demo
```
* @example ````Change the context of a function bound to the click handler,
```html
jQuery.proxy demo
```
*/
proxy(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): (t: T, u: U, v: V) => TReturn;
/**
* Takes a function and returns a new one that will always have a particular context.
* @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
* @deprecated Deprecated since 3.3. Use \`{@link Function#bind }\`.
* @example ````Change the context of functions bound to a click handler using the "function, context" signature. Unbind the first handler after first click.
```html
jQuery.proxy demo
```
* @example ````Change the context of a function bound to the click handler,
```html
jQuery.proxy demo
```
*/
proxy(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): (t: T, u: U, v: V) => TReturn;
/**
* Takes a function and returns a new one that will always have a particular context.
* @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
* @deprecated Deprecated since 3.3. Use \`{@link Function#bind }\`.
* @example ````Change the context of functions bound to a click handler using the "function, context" signature. Unbind the first handler after first click.
```html
jQuery.proxy demo
```
* @example ````Change the context of a function bound to the click handler,
```html
jQuery.proxy demo
```
*/
proxy(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): (t: T, u: U, v: V) => TReturn;
/**
* Takes a function and returns a new one that will always have a particular context.
* @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
* @deprecated Deprecated since 3.3. Use \`{@link Function#bind }\`.
* @example ````Change the context of functions bound to a click handler using the "function, context" signature. Unbind the first handler after first click.
```html
jQuery.proxy demo
```
* @example ````Change the context of a function bound to the click handler,
```html
jQuery.proxy demo
```
*/
proxy(funсtion: (this: TContext, a: A, b: B,
t: T, u: U, v: V) => TReturn,
context: TContext,
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 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
* @deprecated Deprecated since 3.3. Use \`{@link Function#bind }\`.
* @example ````Change the context of functions bound to a click handler using the "function, context" signature. Unbind the first handler after first click.
```html
jQuery.proxy demo
```
* @example ````Change the context of a function bound to the click handler,
```html
jQuery.proxy demo
```
*/
proxy(funсtion: (this: TContext, a: A,
t: T, u: U, v: V) => TReturn,
context: TContext,
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 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
* @since 1.6
* @deprecated Deprecated since 3.3. Use \`{@link Function#bind }\`.
* @example ````Change the context of functions bound to a click handler using the "function, context" signature. Unbind the first handler after first click.
```html
jQuery.proxy demo
```
* @example ````Change the context of a function bound to the click handler,
```html
jQuery.proxy demo
```
*/
proxy(funсtion: (this: TContext, t: T, u: U, v: V) => TReturn,
context: TContext): (t: T, u: U, v: V) => TReturn;
// #endregion
// region 4 parameters
// #region 4 parameters
/**
* Takes a function and returns a new one that will always have a particular context.
* @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
* @deprecated Deprecated since 3.3. Use \`{@link Function#bind }\`.
* @example ````Change the context of functions bound to a click handler using the "function, context" signature. Unbind the first handler after first click.
```html
jQuery.proxy demo
```
* @example ````Change the context of a function bound to the click handler,
```html
jQuery.proxy demo
```
*/
proxy(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): (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 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
* @deprecated Deprecated since 3.3. Use \`{@link Function#bind }\`.
* @example ````Change the context of functions bound to a click handler using the "function, context" signature. Unbind the first handler after first click.
```html
jQuery.proxy demo
```
* @example ````Change the context of a function bound to the click handler,
```html
jQuery.proxy demo
```
*/
proxy(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): (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 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
* @deprecated Deprecated since 3.3. Use \`{@link Function#bind }\`.
* @example ````Change the context of functions bound to a click handler using the "function, context" signature. Unbind the first handler after first click.
```html
jQuery.proxy demo
```
* @example ````Change the context of a function bound to the click handler,
```html
jQuery.proxy demo
```
*/
proxy(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): (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 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
* @deprecated Deprecated since 3.3. Use \`{@link Function#bind }\`.
* @example ````Change the context of functions bound to a click handler using the "function, context" signature. Unbind the first handler after first click.
```html
jQuery.proxy demo
```
* @example ````Change the context of a function bound to the click handler,
```html
jQuery.proxy demo
```
*/
proxy(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): (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 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
* @deprecated Deprecated since 3.3. Use \`{@link Function#bind }\`.
* @example ````Change the context of functions bound to a click handler using the "function, context" signature. Unbind the first handler after first click.
```html
jQuery.proxy demo
```
* @example ````Change the context of a function bound to the click handler,
```html
jQuery.proxy demo
```
*/
proxy(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): (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 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
* @deprecated Deprecated since 3.3. Use \`{@link Function#bind }\`.
* @example ````Change the context of functions bound to a click handler using the "function, context" signature. Unbind the first handler after first click.
```html
jQuery.proxy demo
```
* @example ````Change the context of a function bound to the click handler,
```html
jQuery.proxy demo
```
*/
proxy(funсtion: (this: TContext, a: A, b: B,
t: T, u: U, v: V, w: W) => TReturn,
context: TContext,
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 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
* @deprecated Deprecated since 3.3. Use \`{@link Function#bind }\`.
* @example ````Change the context of functions bound to a click handler using the "function, context" signature. Unbind the first handler after first click.
```html
jQuery.proxy demo
```
* @example ````Change the context of a function bound to the click handler,
```html
jQuery.proxy demo
```
*/
proxy(funсtion: (this: TContext, a: A,
t: T, u: U, v: V, w: W) => TReturn,
context: TContext,
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 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
* @since 1.6
* @deprecated Deprecated since 3.3. Use \`{@link Function#bind }\`.
* @example ````Change the context of functions bound to a click handler using the "function, context" signature. Unbind the first handler after first click.
```html
jQuery.proxy demo
```
* @example ````Change the context of a function bound to the click handler,
```html
jQuery.proxy demo
```
*/
proxy(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
// region 5 parameters
// #region 5 parameters
/**
* Takes a function and returns a new one that will always have a particular context.
* @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
* @deprecated Deprecated since 3.3. Use \`{@link Function#bind }\`.
* @example ````Change the context of functions bound to a click handler using the "function, context" signature. Unbind the first handler after first click.
```html
jQuery.proxy demo
```
* @example ````Change the context of a function bound to the click handler,
```html
jQuery.proxy demo
```
*/
proxy(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): (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 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
* @deprecated Deprecated since 3.3. Use \`{@link Function#bind }\`.
* @example ````Change the context of functions bound to a click handler using the "function, context" signature. Unbind the first handler after first click.
```html
jQuery.proxy demo
```
* @example ````Change the context of a function bound to the click handler,
```html
jQuery.proxy demo
```
*/
proxy(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): (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 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
* @deprecated Deprecated since 3.3. Use \`{@link Function#bind }\`.
* @example ````Change the context of functions bound to a click handler using the "function, context" signature. Unbind the first handler after first click.
```html
jQuery.proxy demo
```
* @example ````Change the context of a function bound to the click handler,
```html
jQuery.proxy demo
```
*/
proxy(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): (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 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
* @deprecated Deprecated since 3.3. Use \`{@link Function#bind }\`.
* @example ````Change the context of functions bound to a click handler using the "function, context" signature. Unbind the first handler after first click.
```html
jQuery.proxy demo
```
* @example ````Change the context of a function bound to the click handler,
```html
jQuery.proxy demo
```
*/
proxy(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): (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 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
* @deprecated Deprecated since 3.3. Use \`{@link Function#bind }\`.
* @example ````Change the context of functions bound to a click handler using the "function, context" signature. Unbind the first handler after first click.
```html
jQuery.proxy demo
```
* @example ````Change the context of a function bound to the click handler,
```html
jQuery.proxy demo
```
*/
proxy(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): (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 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
* @deprecated Deprecated since 3.3. Use \`{@link Function#bind }\`.
* @example ````Change the context of functions bound to a click handler using the "function, context" signature. Unbind the first handler after first click.
```html
jQuery.proxy demo
```
* @example ````Change the context of a function bound to the click handler,
```html
jQuery.proxy demo
```
*/
proxy(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): (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 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
* @deprecated Deprecated since 3.3. Use \`{@link Function#bind }\`.
* @example ````Change the context of functions bound to a click handler using the "function, context" signature. Unbind the first handler after first click.
```html
jQuery.proxy demo
```
* @example ````Change the context of a function bound to the click handler,
```html
jQuery.proxy demo
```
*/
proxy(funсtion: (this: TContext, a: A,
t: T, u: U, v: V, w: W, x: X) => TReturn,
context: TContext,
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 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
* @since 1.6
* @deprecated Deprecated since 3.3. Use \`{@link Function#bind }\`.
* @example ````Change the context of functions bound to a click handler using the "function, context" signature. Unbind the first handler after first click.
```html
jQuery.proxy demo
```
* @example ````Change the context of a function bound to the click handler,
```html
jQuery.proxy demo
```
*/
proxy(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
// region 6 parameters
// #region 6 parameters
/**
* Takes a function and returns a new one that will always have a particular context.
* @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
* @deprecated Deprecated since 3.3. Use \`{@link Function#bind }\`.
* @example ````Change the context of functions bound to a click handler using the "function, context" signature. Unbind the first handler after first click.
```html
jQuery.proxy demo
```
* @example ````Change the context of a function bound to the click handler,
```html
jQuery.proxy demo
```
*/
proxy(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): (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 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
* @deprecated Deprecated since 3.3. Use \`{@link Function#bind }\`.
* @example ````Change the context of functions bound to a click handler using the "function, context" signature. Unbind the first handler after first click.
```html
jQuery.proxy demo
```
* @example ````Change the context of a function bound to the click handler,
```html
jQuery.proxy demo
```
*/
proxy(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): (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 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
* @deprecated Deprecated since 3.3. Use \`{@link Function#bind }\`.
* @example ````Change the context of functions bound to a click handler using the "function, context" signature. Unbind the first handler after first click.
```html
jQuery.proxy demo
```
* @example ````Change the context of a function bound to the click handler,
```html
jQuery.proxy demo
```
*/
proxy(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): (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 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
* @deprecated Deprecated since 3.3. Use \`{@link Function#bind }\`.
* @example ````Change the context of functions bound to a click handler using the "function, context" signature. Unbind the first handler after first click.
```html
jQuery.proxy demo
```
* @example ````Change the context of a function bound to the click handler,
```html
jQuery.proxy demo
```
*/
proxy(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): (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 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
* @deprecated Deprecated since 3.3. Use \`{@link Function#bind }\`.
* @example ````Change the context of functions bound to a click handler using the "function, context" signature. Unbind the first handler after first click.
```html
jQuery.proxy demo
```
* @example ````Change the context of a function bound to the click handler,
```html
jQuery.proxy demo
```
*/
proxy(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): (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 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
* @deprecated Deprecated since 3.3. Use \`{@link Function#bind }\`.
* @example ````Change the context of functions bound to a click handler using the "function, context" signature. Unbind the first handler after first click.
```html
jQuery.proxy demo
```
* @example ````Change the context of a function bound to the click handler,
```html
jQuery.proxy demo
```
*/
proxy(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): (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 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
* @deprecated Deprecated since 3.3. Use \`{@link Function#bind }\`.
* @example ````Change the context of functions bound to a click handler using the "function, context" signature. Unbind the first handler after first click.
```html
jQuery.proxy demo
```
* @example ````Change the context of a function bound to the click handler,
```html
jQuery.proxy demo
```
*/
proxy(funсtion: (this: TContext, a: A,
t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn,
context: TContext,
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 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
* @since 1.6
* @deprecated Deprecated since 3.3. Use \`{@link Function#bind }\`.
* @example ````Change the context of functions bound to a click handler using the "function, context" signature. Unbind the first handler after first click.
```html
jQuery.proxy demo
```
* @example ````Change the context of a function bound to the click handler,
```html
jQuery.proxy demo
```
*/
proxy(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
// region 7+ parameters
// #region 7+ parameters
/**
* Takes a function and returns a new one that will always have a particular context.
* @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
* @deprecated Deprecated since 3.3. Use \`{@link Function#bind }\`.
* @example ````Change the context of functions bound to a click handler using the "function, context" signature. Unbind the first handler after first click.
```html
jQuery.proxy demo
```
* @example ````Change the context of a function bound to the click handler,
```html
jQuery.proxy demo
```
*/
proxy(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): (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 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
* @deprecated Deprecated since 3.3. Use \`{@link Function#bind }\`.
* @example ````Change the context of functions bound to a click handler using the "function, context" signature. Unbind the first handler after first click.
```html
jQuery.proxy demo
```
* @example ````Change the context of a function bound to the click handler,
```html
jQuery.proxy demo
```
*/
proxy(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): (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 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
* @deprecated Deprecated since 3.3. Use \`{@link Function#bind }\`.
* @example ````Change the context of functions bound to a click handler using the "function, context" signature. Unbind the first handler after first click.
```html
jQuery.proxy demo
```
* @example ````Change the context of a function bound to the click handler,
```html
jQuery.proxy demo
```
*/
proxy(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): (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 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
* @deprecated Deprecated since 3.3. Use \`{@link Function#bind }\`.
* @example ````Change the context of functions bound to a click handler using the "function, context" signature. Unbind the first handler after first click.
```html
jQuery.proxy demo
```
* @example ````Change the context of a function bound to the click handler,
```html
jQuery.proxy demo
```
*/
proxy(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): (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 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
* @deprecated Deprecated since 3.3. Use \`{@link Function#bind }\`.
* @example ````Change the context of functions bound to a click handler using the "function, context" signature. Unbind the first handler after first click.
```html
jQuery.proxy demo
```
* @example ````Change the context of a function bound to the click handler,
```html
jQuery.proxy demo
```
*/
proxy(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): (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 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
* @deprecated Deprecated since 3.3. Use \`{@link Function#bind }\`.
* @example ````Change the context of functions bound to a click handler using the "function, context" signature. Unbind the first handler after first click.
```html
jQuery.proxy demo
```
* @example ````Change the context of a function bound to the click handler,
```html
jQuery.proxy demo
```
*/
proxy(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): (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 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
* @deprecated Deprecated since 3.3. Use \`{@link Function#bind }\`.
* @example ````Change the context of functions bound to a click handler using the "function, context" signature. Unbind the first handler after first click.
```html
jQuery.proxy demo
```
* @example ````Change the context of a function bound to the click handler,
```html
jQuery.proxy demo
```
*/
proxy(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): (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 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
* @since 1.6
* @deprecated Deprecated since 3.3. Use \`{@link Function#bind }\`.
* @example ````Change the context of functions bound to a click handler using the "function, context" signature. Unbind the first handler after first click.
```html
jQuery.proxy demo
```
* @example ````Change the context of a function bound to the click handler,
```html
jQuery.proxy demo
```
*/
proxy(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
// #endregion
// region 8+ additional arguments
// #region 8+ additional arguments
/**
* Takes a function and returns a new one that will always have a particular context.
* @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.4
* @since 1.6
* @deprecated Deprecated since 3.3. Use \`{@link Function#bind }\`.
* @example ````Change the context of functions bound to a click handler using the "function, context" signature. Unbind the first handler after first click.
```html
jQuery.proxy demo
```
* @example ````Change the context of a function bound to the click handler,
```html
jQuery.proxy demo
```
*/
proxy(funсtion: (this: TContext, ...args: any[]) => TReturn,
context: TContext,
...additionalArguments: any[]): (...args: any[]) => TReturn;
// #endregion
// #endregion
// region (context, name)
// #region (context, name)
/**
* Takes a function and returns a new one that will always have a particular context.
* @param context The object to which the context of the function should be set.
* @param name The name of the function whose context will be changed (should be a property of the context object).
* @param additionalArguments Any number of arguments to be passed to the function named in the name argument.
* @see \`{@link https://api.jquery.com/jQuery.proxy/ }\`
* @since 1.4
* @since 1.6
* @deprecated Deprecated since 3.3. Use \`{@link Function#bind }\`.
* @example ````Enforce the context of the function using the "context, function name" signature. Unbind the handler after first click.
```html
jQuery.proxy demo
```
*/
proxy(context: TContext,
name: keyof TContext,
...additionalArguments: any[]): (...args: any[]) => any;
// #endregion
// #endregion
/**
* Manipulate the queue of functions to be executed on the matched element.
* @param element A DOM element where the array of queued functions is attached.
* @param queueName A string containing the name of the queue. Defaults to fx, the standard effects queue.
* @param newQueue The new function to add to the queue.
* An array of functions to replace the current queue contents.
* @see \`{@link https://api.jquery.com/jQuery.queue/ }\`
* @since 1.3
* @example ````Show the length of the queue.
```html
jQuery.queue demo
```
* @example ````Queue a custom function.
```html
jQuery.queue demo
Click here...
```
* @example ````Set a queue array to delete the queue.
```html
jQuery.queue demo
```
*/
queue(element: T, queueName?: string, newQueue?: JQuery.TypeOrArray>): JQuery.Queue;
/**
* Handles errors thrown synchronously in functions wrapped in jQuery().
* @param error An error thrown in the function wrapped in jQuery().
* @see \`{@link https://api.jquery.com/jQuery.readyException/ }\`
* @since 3.1
* @example ````Pass the received error to console.error.
```javascript
jQuery.readyException = function( error ) {
console.error( error );
};
```
*/
readyException(error: Error): any;
/**
* Remove a previously-stored piece of data.
* @param element A DOM element from which to remove data.
* @param name A string naming the piece of data to remove.
* @see \`{@link https://api.jquery.com/jQuery.removeData/ }\`
* @since 1.2.3
* @example ````Set a data store for 2 names then remove one of them.
```html
jQuery.removeData demo
value1 before creation:
value1 after creation:
value1 after removal:
value2 after removal:
```
*/
removeData(element: Element | Document | Window | JQuery.PlainObject, name?: string): void;
/**
* Creates an object containing a set of properties ready to be used in the definition of custom animations.
* @param duration A string or number determining how long the animation will run.
* @param easing A string indicating which easing function to use for the transition.
* @param complete A function to call once the animation is complete, called once per matched element.
* @see \`{@link https://api.jquery.com/jQuery.speed/ }\`
* @since 1.1
*/
speed(duration: JQuery.Duration, easing: string, complete: (this: TElement) => void): JQuery.EffectsOptions;
/**
* Creates an object containing a set of properties ready to be used in the definition of custom animations.
* @param duration A string or number determining how long the animation will run.
* @param easing_complete _@param_ `easing_complete`
*
* * `easing` — A string indicating which easing function to use for the transition.
* * `complete` — A function to call once the animation is complete, called once per matched element.
* @see \`{@link https://api.jquery.com/jQuery.speed/ }\`
* @since 1.0
* @since 1.1
*/
speed(duration: JQuery.Duration,
easing_complete: string | ((this: TElement) => void)): JQuery.EffectsOptions;
/**
* Creates an object containing a set of properties ready to be used in the definition of custom animations.
* @param duration_complete_settings _@param_ `duration_complete_settings`
*
* * `duration` — A string or number determining how long the animation will run.
* * `complete` — A function to call once the animation is complete, called once per matched element.
* * `settings` —
* @see \`{@link https://api.jquery.com/jQuery.speed/ }\`
* @since 1.0
* @since 1.1
*/
speed(duration_complete_settings?: JQuery.Duration | ((this: TElement) => void) | JQuery.SpeedSettings): JQuery.EffectsOptions;
/**
* Remove the whitespace from the beginning and end of a string.
* @param str The string to trim.
* @see \`{@link https://api.jquery.com/jQuery.trim/ }\`
* @since 1.0
* @deprecated Deprecated since 3.5. See \`{@link https://api.jquery.com/category/deprecated/deprecated-3.5/ }\`.
* @example ````Remove the white spaces at the start and at the end of the string.
```html
jQuery.trim demo
```
* @example ````Remove the white spaces at the start and at the end of the string.
```javascript
$.trim(" hello, how are you? ");
```
* @example ````Remove the white spaces at the start and at the end of the string.
```javascript
$.trim(" hello, how are you? ");
```
*/
trim(str: string): string;
/**
* Determine the internal JavaScript [[Class]] of an object.
* @param obj Object to get the internal JavaScript [[Class]] of.
* @see \`{@link https://api.jquery.com/jQuery.type/ }\`
* @since 1.4.3
* @deprecated Deprecated since 3.3. See \`{@link https://github.com/jquery/jquery/issues/3605 }\`.
* @example ````Find out if the parameter is a RegExp.
```html
jQuery.type demo
Is it a RegExp?
```
*/
type(obj: any): 'array' | 'boolean' | 'date' | 'error' | 'function' | 'null' | 'number' | 'object' | 'regexp' | 'string' | 'symbol' | 'undefined';
/**
* Sorts an array of DOM elements, in place, with the duplicates removed. Note that this only works on arrays of DOM elements, not strings or numbers.
* @param array The Array of DOM elements.
* @see \`{@link https://api.jquery.com/jQuery.unique/ }\`
* @since 1.1.3
* @deprecated Deprecated since 3.0. Use \`{@link uniqueSort }\`.
*
* **Cause**: The fact that `jQuery.unique` sorted its results in DOM order was surprising to many who did not read the documentation carefully. As of jQuery 3.0 this function is being renamed to make it clear.
*
* **Solution**: Replace all uses of `jQuery.unique` with `jQuery.uniqueSort` which is the same function with a better name.
* @example ````Removes any duplicate elements from the array of divs.
```html
jQuery.unique demo
There are 6 divs in this document.
```
*/
unique(array: T[]): T[];
/**
* Sorts an array of DOM elements, in place, with the duplicates removed. Note that this only works on arrays of DOM elements, not strings or numbers.
* @param array The Array of DOM elements.
* @see \`{@link https://api.jquery.com/jQuery.uniqueSort/ }\`
* @since 1.12
* @since 2.2
* @example ````Removes any duplicate elements from the array of divs.
```html
jQuery.uniqueSort demo
There are 6 divs in this document.
```
*/
uniqueSort(array: T[]): T[];
/**
* Provides a way to execute callback functions based on zero or more Thenable objects, usually Deferred objects that represent asynchronous events.
* @see \`{@link https://api.jquery.com/jQuery.when/ }\`
* @since 1.5
* @example ````Execute a function after two Ajax requests are successful. (See the jQuery.ajax() documentation for a complete description of success and error cases for an ajax request).
```javascript
$.when( $.ajax( "/page1.php" ), $.ajax( "/page2.php" ) ).done(function( a1, a2 ) {
// a1 and a2 are arguments resolved for the page1 and page2 ajax requests, respectively.
// Each argument is an array with the following structure: [ data, statusText, jqXHR ]
var data = a1[ 0 ] + a2[ 0 ]; // a1[ 0 ] = "Whip", a2[ 0 ] = " It"
if ( /Whip It/.test( data ) ) {
alert( "We got what we came for!" );
}
});
```
* @example ````Execute the function myFunc when both ajax requests are successful, or myFailure if either one has an error.
```javascript
$.when( $.ajax( "/page1.php" ), $.ajax( "/page2.php" ) )
.then( myFunc, myFailure );
```
*/
when(
deferredT: JQuery.Promise | JQuery.Thenable | TR1,
deferredU: JQuery.Promise | JQuery.Thenable | UR1,
deferredV: JQuery.Promise | JQuery.Thenable | VR1,
): JQuery.Promise3<
TR1, TJ1, never,
UR1, UJ1, never,
VR1, VJ1, never>;
/**
* Provides a way to execute callback functions based on zero or more Thenable objects, usually Deferred objects that represent asynchronous events.
* @see \`{@link https://api.jquery.com/jQuery.when/ }\`
* @since 1.5
* @example ````Execute a function after two Ajax requests are successful. (See the jQuery.ajax() documentation for a complete description of success and error cases for an ajax request).
```javascript
$.when( $.ajax( "/page1.php" ), $.ajax( "/page2.php" ) ).done(function( a1, a2 ) {
// a1 and a2 are arguments resolved for the page1 and page2 ajax requests, respectively.
// Each argument is an array with the following structure: [ data, statusText, jqXHR ]
var data = a1[ 0 ] + a2[ 0 ]; // a1[ 0 ] = "Whip", a2[ 0 ] = " It"
if ( /Whip It/.test( data ) ) {
alert( "We got what we came for!" );
}
});
```
* @example ````Execute the function myFunc when both ajax requests are successful, or myFailure if either one has an error.
```javascript
$.when( $.ajax( "/page1.php" ), $.ajax( "/page2.php" ) )
.then( myFunc, myFailure );
```
*/
when(
deferredT: JQuery.Promise | JQuery.Thenable | TR1,
deferredU: JQuery.Promise | JQuery.Thenable | UR1,
): JQuery.Promise2<
TR1, TJ1, never,
UR1, UJ1, never>;
/**
* Provides a way to execute callback functions based on zero or more Thenable objects, usually Deferred objects that represent asynchronous events.
* @see \`{@link https://api.jquery.com/jQuery.when/ }\`
* @since 1.5
* @example ````Execute a function after two Ajax requests are successful. (See the jQuery.ajax() documentation for a complete description of success and error cases for an ajax request).
```javascript
$.when( $.ajax( "/page1.php" ), $.ajax( "/page2.php" ) ).done(function( a1, a2 ) {
// a1 and a2 are arguments resolved for the page1 and page2 ajax requests, respectively.
// Each argument is an array with the following structure: [ data, statusText, jqXHR ]
var data = a1[ 0 ] + a2[ 0 ]; // a1[ 0 ] = "Whip", a2[ 0 ] = " It"
if ( /Whip It/.test( data ) ) {
alert( "We got what we came for!" );
}
});
```
* @example ````Execute the function myFunc when both ajax requests are successful, or myFailure if either one has an error.
```javascript
$.when( $.ajax( "/page1.php" ), $.ajax( "/page2.php" ) )
.then( myFunc, myFailure );
```
*/
when(
deferredT: JQuery.Promise3 |
JQuery.Promise2
): JQuery.Promise3<
TR1, TJ1, never,
TR2, TJ2, never,
TR3, TJ3, never>;
/**
* Provides a way to execute callback functions based on zero or more Thenable objects, usually Deferred objects that represent asynchronous events.
* @see \`{@link https://api.jquery.com/jQuery.when/ }\`
* @since 1.5
* @example ````Execute a function after two Ajax requests are successful. (See the jQuery.ajax() documentation for a complete description of success and error cases for an ajax request).
```javascript
$.when( $.ajax( "/page1.php" ), $.ajax( "/page2.php" ) ).done(function( a1, a2 ) {
// a1 and a2 are arguments resolved for the page1 and page2 ajax requests, respectively.
// Each argument is an array with the following structure: [ data, statusText, jqXHR ]
var data = a1[ 0 ] + a2[ 0 ]; // a1[ 0 ] = "Whip", a2[ 0 ] = " It"
if ( /Whip It/.test( data ) ) {
alert( "We got what we came for!" );
}
});
```
* @example ````Execute the function myFunc when both ajax requests are successful, or myFailure if either one has an error.
```javascript
$.when( $.ajax( "/page1.php" ), $.ajax( "/page2.php" ) )
.then( myFunc, myFailure );
```
*/
when(deferred: JQuery.Promise | JQuery.Thenable | TR1): JQuery.Promise;
/**
* Provides a way to execute callback functions based on zero or more Thenable objects, usually Deferred objects that represent asynchronous events.
* @param deferreds Zero or more Thenable objects.
* @see \`{@link https://api.jquery.com/jQuery.when/ }\`
* @since 1.5
* @example ````Execute a function after two Ajax requests are successful. (See the jQuery.ajax() documentation for a complete description of success and error cases for an ajax request).
```javascript
$.when( $.ajax( "/page1.php" ), $.ajax( "/page2.php" ) ).done(function( a1, a2 ) {
// a1 and a2 are arguments resolved for the page1 and page2 ajax requests, respectively.
// Each argument is an array with the following structure: [ data, statusText, jqXHR ]
var data = a1[ 0 ] + a2[ 0 ]; // a1[ 0 ] = "Whip", a2[ 0 ] = " It"
if ( /Whip It/.test( data ) ) {
alert( "We got what we came for!" );
}
});
```
* @example ````Execute the function myFunc when both ajax requests are successful, or myFailure if either one has an error.
```javascript
$.when( $.ajax( "/page1.php" ), $.ajax( "/page2.php" ) )
.then( myFunc, myFailure );
```
*/
when(...deferreds: Array | JQuery.Thenable | TR1>): JQuery.Promise;
/**
* Provides a way to execute callback functions based on zero or more Thenable objects, usually Deferred objects that represent asynchronous events.
* @param deferreds Zero or more Thenable objects.
* @see \`{@link https://api.jquery.com/jQuery.when/ }\`
* @since 1.5
* @example ````Execute a function after two Ajax requests are successful. (See the jQuery.ajax() documentation for a complete description of success and error cases for an ajax request).
```javascript
$.when( $.ajax( "/page1.php" ), $.ajax( "/page2.php" ) ).done(function( a1, a2 ) {
// a1 and a2 are arguments resolved for the page1 and page2 ajax requests, respectively.
// Each argument is an array with the following structure: [ data, statusText, jqXHR ]
var data = a1[ 0 ] + a2[ 0 ]; // a1[ 0 ] = "Whip", a2[ 0 ] = " It"
if ( /Whip It/.test( data ) ) {
alert( "We got what we came for!" );
}
});
```
* @example ````Execute the function myFunc when both ajax requests are successful, or myFailure if either one has an error.
```javascript
$.when( $.ajax( "/page1.php" ), $.ajax( "/page2.php" ) )
.then( myFunc, myFailure );
```
*/
when(...deferreds: any[]): JQuery.Promise;
}