List creation failed "
- + "The server responded with this: "
- + xhr.responseJSON.message
- + "
";
- $('#uploads_queue').append(
- $(resultString).hide().fadeIn('slow').css("display", "")
- );
+ + ''+window.location.hostname+'/l/'+resp.id+'';
+ document.getElementById("uploads_queue").appendChild(div);
+ window.open('/l/'+resp.id, '_blank');
+ } else {
+ console.log("status: "+xhr.status+" response: "+xhr.response)
+ var div = document.createElement("div")
+ div.className = "file_button";
+ div.innerHTML = "List creation failed "
+ + "The server responded with: "
+ + resp.message;
+ document.getElementById("uploads_queue").append(div);
}
- });
+ }
+
+ xhr.send(JSON.stringify(postData));
}
// Form upload handlers
diff --git a/res/static/typescript/home/tsconfig.json b/res/static/typescript/home/tsconfig.json
index 3d95f26..074f4dd 100644
--- a/res/static/typescript/home/tsconfig.json
+++ b/res/static/typescript/home/tsconfig.json
@@ -1,11 +1,10 @@
{
"compilerOptions": {
- "outFile": "../../script/compiled/home.js"
+ "outFile": "../../../include/script/compiled/home.js"
},
"files": [
"home.ts",
"../lib/cookie.ts",
- "../lib/jquery.d.ts",
"../lib/uploader.ts"
]
}
diff --git a/res/static/typescript/lib/jquery.d.ts b/res/static/typescript/lib/jquery.d.ts
index c4abf6d..ed0147a 100644
--- a/res/static/typescript/lib/jquery.d.ts
+++ b/res/static/typescript/lib/jquery.d.ts
@@ -1,3098 +1,640 @@
-// Type definitions for jquery 3.2
-// Project: https://jquery.com
-// Definitions by: Leonard Thieu
-// Boris Yankov
-// Christian Hoffmeister
-// Steve Fenton
-// Diullei Gomes
-// Tass Iliopoulos
-// Jason Swearingen
-// Sean Hill
-// Guus Goossens
-// Kelly Summerlin
-// Basarat Ali Syed
-// Nicholas Wolverson
-// Derek Cicerone
-// Andrew Gaspar
-// Seikichi Kondo
-// Benjamin Jackman
-// Poul Sorensen
-// Josh Strobl
-// John Reilly
-// Dick van den Brink
-// Thomas Schulz
-// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
-// TypeScript Version: 2.3
+// tslint:disable:jsdoc-format
+// tslint:disable:max-line-length
+// tslint:disable:no-irregular-whitespace
-declare module 'jquery' {
- export = jQuery;
-}
-
-declare module 'jquery/dist/jquery.slim' {
- export = jQuery;
-}
-
-declare const jQuery: JQueryStatic;
-declare const $: JQueryStatic;
-
-// Used by JQuery.Event
-type _Event = Event;
-// Used by JQuery.Promise3 and JQuery.Promise
-type _Promise = Promise;
-
-interface JQueryStatic {
- /**
- * @see {@link http://api.jquery.com/jquery.ajax/#jQuery-ajax1}
- * @deprecated Use jQuery.ajaxSetup(options)
- */
- ajaxSettings: JQuery.AjaxSettings;
- /**
- * A factory function that returns a chainable utility object with methods to register multiple
- * callbacks into callback queues, invoke callback queues, and relay the success or failure state of
- * any synchronous or asynchronous function.
- *
- * @param beforeStart A function that is called just before the constructor returns.
- * @see {@link https://api.jquery.com/jQuery.Deferred/}
- * @since 1.5
- */
- Deferred: JQuery.DeferredStatic;
- Event: JQuery.EventStatic;
- /**
- * Hook directly into jQuery to override how particular CSS properties are retrieved or set, normalize
- * CSS property naming, or create custom properties.
- *
- * @see {@link https://api.jquery.com/jQuery.cssHooks/}
- * @since 1.4.3
- */
- cssHooks: JQuery.PlainObject>;
- /**
- * An object containing all CSS properties that may be used without a unit. The .css() method uses this
- * object to see if it may append px to unitless values.
- *
- * @see {@link https://api.jquery.com/jQuery.cssNumber/}
- * @since 1.4.3
- */
- cssNumber: JQuery.PlainObject;
- readonly fn: JQuery;
- fx: {
- /**
- * The rate (in milliseconds) at which animations fire.
- *
- * @see {@link https://api.jquery.com/jQuery.fx.interval/}
- * @since 1.4.3
- * @deprecated 3.0
- */
- interval: number;
- /**
- * Globally disable all animations.
- *
- * @see {@link https://api.jquery.com/jQuery.fx.off/}
- * @since 1.3
- */
- off: boolean;
- step: JQuery.PlainObject>;
- };
- /**
- * A Promise-like object (or "thenable") that resolves when the document is ready.
- *
- * @see {@link https://api.jquery.com/jQuery.ready/}
- * @since 1.8
- */
- ready: JQuery.Thenable>;
- /**
- * A collection of properties that represent the presence of different browser features or bugs.
- * Intended for jQuery's internal use; specific properties may be removed when they are no longer
- * needed internally to improve page startup performance. For your own project's feature-detection
- * needs, we strongly recommend the use of an external library such as Modernizr instead of dependency
- * on properties in jQuery.support.
- *
- * @see {@link https://api.jquery.com/jQuery.support/}
- * @since 1.3
- * @deprecated 1.9
- */
- support: JQuery.PlainObject;
- valHooks: JQuery.PlainObject>;
- /**
- * Creates DOM elements on the fly from the provided string of raw HTML.
- *
- * @param html A string of HTML to create on the fly. Note that this parses HTML, not XML.
- * A string defining a single, standalone, HTML element (e.g. or ).
- * @param ownerDocument_attributes A document in which the new elements will be created.
- * An object of attributes, events, and methods to call on the newly-created element.
- * @see {@link https://api.jquery.com/jQuery/}
- * @since 1.0
- * @since 1.4
- */
- (html: JQuery.htmlString, ownerDocument_attributes: Document | JQuery.PlainObject): JQuery;
- /**
- * Accepts a string containing a CSS selector which is then used to match a set of elements.
- *
- * @param selector A string containing a selector expression
- * @param context A DOM Element, Document, or jQuery to use as context
- * @see {@link https://api.jquery.com/jQuery/}
- * @since 1.0
- */
- (selector: JQuery.Selector, context: Element | Document | JQuery | undefined): JQuery;
- // HACK: This is the factory function returned when importing jQuery without a DOM. Declaring it separately breaks using the type parameter on JQueryStatic.
- // HACK: The discriminator parameter handles the edge case of passing a Window object to JQueryStatic. It doesn't actually exist on the factory function.
- (window: Window, discriminator: boolean): JQueryStatic;
- /**
- * Creates DOM elements on the fly from the provided string of raw HTML.
- *
- * Binds a function to be executed when the DOM has finished loading.
- *
- * @param selector_object_callback A string containing a selector expression
- * A DOM element to wrap in a jQuery object.
- * An array containing a set of DOM elements to wrap in a jQuery object.
- * A plain object to wrap in a jQuery object.
- * An existing jQuery object to clone.
- * The function to execute when the DOM is ready.
- * @see {@link https://api.jquery.com/jQuery/}
- * @since 1.0
- * @since 1.4
- */
- (selector_object_callback?: JQuery.Selector | JQuery.htmlString | JQuery.TypeOrArray | JQuery |
- JQuery.PlainObject |
- ((this: Document, $: JQueryStatic) => void)): JQuery;
- /**
- * A multi-purpose callbacks list object that provides a powerful way to manage callback lists.
- *
- * @param flags An optional list of space-separated flags that change how the callback list behaves.
- * @see {@link https://api.jquery.com/jQuery.Callbacks/}
- * @since 1.7
- */
- Callbacks(flags?: string): JQuery.Callbacks;
- /**
- * Perform an asynchronous HTTP (Ajax) request.
- *
- * @param url A string containing the URL to which the request is sent.
- * @param settings A set of key/value pairs that configure the Ajax request. All settings are optional. A default can
- * be set for any option with $.ajaxSetup(). See jQuery.ajax( settings ) below for a complete list of all settings.
- * @see {@link https://api.jquery.com/jQuery.ajax/}
- * @since 1.5
- */
- ajax(url: string, settings?: JQuery.AjaxSettings): JQuery.jqXHR;
- /**
- * Perform an asynchronous HTTP (Ajax) request.
- *
- * @param settings A set of key/value pairs that configure the Ajax request. All settings are optional. A default can
- * be set for any option with $.ajaxSetup().
- * @see {@link https://api.jquery.com/jQuery.ajax/}
- * @since 1.0
- */
- ajax(settings?: JQuery.AjaxSettings): JQuery.jqXHR;
- /**
- * Handle custom Ajax options or modify existing options before each request is sent and before they
- * are processed by $.ajax().
- *
- * @param dataTypes An optional string containing one or more space-separated dataTypes
- * @param handler A handler to set default values for future Ajax requests.
- * @see {@link https://api.jquery.com/jQuery.ajaxPrefilter/}
- * @since 1.5
- */
- ajaxPrefilter(dataTypes: string,
- handler: (options: JQuery.AjaxSettings, originalOptions: JQuery.AjaxSettings, jqXHR: JQuery.jqXHR) => string | void): void;
- /**
- * Handle custom Ajax options or modify existing options before each request is sent and before they
- * are processed by $.ajax().
- *
- * @param handler A handler to set default values for future Ajax requests.
- * @see {@link https://api.jquery.com/jQuery.ajaxPrefilter/}
- * @since 1.5
- */
- ajaxPrefilter(handler: (options: JQuery.AjaxSettings, originalOptions: JQuery.AjaxSettings, jqXHR: JQuery.jqXHR) => string | void): void;
- /**
- * Set default values for future Ajax requests. Its use is not recommended.
- *
- * @param options A set of key/value pairs that configure the default Ajax request. All options are optional.
- * @see {@link https://api.jquery.com/jQuery.ajaxSetup/}
- * @since 1.1
- */
- ajaxSetup(options: JQuery.AjaxSettings): JQuery.AjaxSettings;
- /**
- * Creates an object that handles the actual transmission of Ajax data.
- *
- * @param dataType A string identifying the data type to use
- * @param handler A handler to return the new transport object to use with the data type provided in the first argument.
- * @see {@link https://api.jquery.com/jQuery.ajaxTransport/}
- * @since 1.5
- */
- ajaxTransport(dataType: string,
- handler: (options: JQuery.AjaxSettings, originalOptions: JQuery.AjaxSettings, jqXHR: JQuery.jqXHR) => JQuery.Transport | void): void;
- /**
- * Check to see if a DOM element is a descendant of another DOM element.
- *
- * @param container The DOM element that may contain the other element.
- * @param contained The DOM element that may be contained by (a descendant of) the other element.
- * @see {@link https://api.jquery.com/jQuery.contains/}
- * @since 1.4
- */
- contains(container: Element, contained: Element): boolean;
- css(elem: Element, unknown: any): any;
- /**
- * Returns value at named data store for the element, as set by jQuery.data(element, name, value), or
- * the full data store for the element.
- *
- * @param element The DOM element to query for the data.
- * @param key Name of the data stored.
- * @see {@link https://api.jquery.com/jQuery.data/}
- * @since 1.2.3
- */
- data(element: Element, key: string, undefined: undefined): any; // tslint:disable-line:unified-signatures
- /**
- * Store arbitrary data associated with the specified element. Returns the value that was set.
- *
- * @param element The DOM element to associate with the data.
- * @param key A string naming the piece of data to set.
- * @param value The new data value; this can be any Javascript type except undefined.
- * @see {@link https://api.jquery.com/jQuery.data/}
- * @since 1.2.3
- */
- data(element: Element, key: string, value: T): T;
- /**
- * Returns value at named data store for the element, as set by jQuery.data(element, name, value), or
- * the full data store for the element.
- *
- * @param element The DOM element to query for the data.
- * @param key Name of the data stored.
- * @see {@link https://api.jquery.com/jQuery.data/}
- * @since 1.2.3
- * @since 1.4
- */
- data(element: Element, key?: string): any;
- /**
- * Execute the next function on the queue for the matched element.
- *
- * @param element A DOM element from which to remove and execute a queued function.
- * @param queueName A string containing the name of the queue. Defaults to fx, the standard effects queue.
- * @see {@link https://api.jquery.com/jQuery.dequeue/}
- * @since 1.3
- */
- dequeue(element: Element, queueName?: string): void;
- /**
- * A generic iterator function, which can be used to seamlessly iterate over both objects and arrays.
- * Arrays and array-like objects with a length property (such as a function's arguments object) are
- * iterated by numeric index, from 0 to length-1. Other objects are iterated via their named properties.
- *
- * @param array The array to iterate over.
- * @param callback The function that will be executed on every object.
- * @see {@link https://api.jquery.com/jQuery.each/}
- * @since 1.0
- */
- each(array: ArrayLike, callback: (this: T, indexInArray: number, value: T) => false | any): ArrayLike;
- /**
- * A generic iterator function, which can be used to seamlessly iterate over both objects and arrays.
- * Arrays and array-like objects with a length property (such as a function's arguments object) are
- * iterated by numeric index, from 0 to length-1. Other objects are iterated via their named properties.
- *
- * @param obj The object to iterate over.
- * @param callback The function that will be executed on every object.
- * @see {@link https://api.jquery.com/jQuery.each/}
- * @since 1.0
- */
- each(obj: T, callback: (this: T[K], propertyName: K, valueOfProperty: T[K]) => false | any): T;
- /**
- * Takes a string and throws an exception containing it.
- *
- * @param message The message to send out.
- * @see {@link https://api.jquery.com/jQuery.error/}
- * @since 1.4.1
- */
- error(message: string): any;
- /**
- * Escapes any character that has a special meaning in a CSS selector.
- *
- * @param selector A string containing a selector expression to escape.
- * @see {@link https://api.jquery.com/jQuery.escapeSelector/}
- * @since 3.0
- */
- escapeSelector(selector: JQuery.Selector): JQuery.Selector;
- /**
- * Merge the contents of two or more objects together into the first object.
- *
- * @param deep If true, the merge becomes recursive (aka. deep copy). Passing false for this argument is not supported.
- * @param target The object to extend. It will receive the new properties.
- * @see {@link https://api.jquery.com/jQuery.extend/}
- * @since 1.1.4
- */
- extend(deep: true, target: T, object1: U, object2: V, object3: W, object4: X, object5: Y, object6: Z): T & U & V & W & X & Y & Z;
- /**
- * Merge the contents of two or more objects together into the first object.
- *
- * @param deep If true, the merge becomes recursive (aka. deep copy). Passing false for this argument is not supported.
- * @param target The object to extend. It will receive the new properties.
- * @see {@link https://api.jquery.com/jQuery.extend/}
- * @since 1.1.4
- */
- extend(deep: true, target: T, object1: U, object2: V, object3: W, object4: X, object5: Y): T & U & V & W & X & Y;
- /**
- * Merge the contents of two or more objects together into the first object.
- *
- * @param deep If true, the merge becomes recursive (aka. deep copy). Passing false for this argument is not supported.
- * @param target The object to extend. It will receive the new properties.
- * @see {@link https://api.jquery.com/jQuery.extend/}
- * @since 1.1.4
- */
- extend(deep: true, target: T, object1: U, object2: V, object3: W, object4: X): T & U & V & W & X;
- /**
- * Merge the contents of two or more objects together into the first object.
- *
- * @param deep If true, the merge becomes recursive (aka. deep copy). Passing false for this argument is not supported.
- * @param target The object to extend. It will receive the new properties.
- * @see {@link https://api.jquery.com/jQuery.extend/}
- * @since 1.1.4
- */
- extend(deep: true, target: T, object1: U, object2: V, object3: W): T & U & V & W;
- /**
- * Merge the contents of two or more objects together into the first object.
- *
- * @param deep If true, the merge becomes recursive (aka. deep copy). Passing false for this argument is not supported.
- * @param target The object to extend. It will receive the new properties.
- * @see {@link https://api.jquery.com/jQuery.extend/}
- * @since 1.1.4
- */
- extend(deep: true, target: T, object1: U, object2: V): T & U & V;
- /**
- * Merge the contents of two or more objects together into the first object.
- *
- * @param deep If true, the merge becomes recursive (aka. deep copy). Passing false for this argument is not supported.
- * @param target The object to extend. It will receive the new properties.
- * @see {@link https://api.jquery.com/jQuery.extend/}
- * @since 1.1.4
- */
- extend(deep: true, target: T, object1: U): T & U;
- /**
- * Merge the contents of two or more objects together into the first object.
- *
- * @param deep If true, the merge becomes recursive (aka. deep copy). Passing false for this argument is not supported.
- * @param target The object to extend. It will receive the new properties.
- * @see {@link https://api.jquery.com/jQuery.extend/}
- * @since 1.1.4
- */
- extend(deep: true, target: any, object1: any, ...objects: any[]): any;
- /**
- * Merge the contents of two or more objects together into the first object.
- *
- * @param target An object that will receive the new properties if additional objects are passed in or that will
- * extend the jQuery namespace if it is the sole argument.
- * @see {@link https://api.jquery.com/jQuery.extend/}
- * @since 1.0
- */
- extend(target: T, object1: U, object2: V, object3: W, object4: X, object5: Y, object6: Z): T & U & V & W & X & Y & Z;
- /**
- * Merge the contents of two or more objects together into the first object.
- *
- * @param target An object that will receive the new properties if additional objects are passed in or that will
- * extend the jQuery namespace if it is the sole argument.
- * @see {@link https://api.jquery.com/jQuery.extend/}
- * @since 1.0
- */
- extend(target: T, object1: U, object2: V, object3: W, object4: X, object5: Y): T & U & V & W & X & Y;
- /**
- * Merge the contents of two or more objects together into the first object.
- *
- * @param target An object that will receive the new properties if additional objects are passed in or that will
- * extend the jQuery namespace if it is the sole argument.
- * @see {@link https://api.jquery.com/jQuery.extend/}
- * @since 1.0
- */
- extend(target: T, object1: U, object2: V, object3: W, object4: X): T & U & V & W & X;
- /**
- * Merge the contents of two or more objects together into the first object.
- *
- * @param target An object that will receive the new properties if additional objects are passed in or that will
- * extend the jQuery namespace if it is the sole argument.
- * @see {@link https://api.jquery.com/jQuery.extend/}
- * @since 1.0
- */
- extend(target: T, object1: U, object2: V, object3: W): T & U & V & W;
- /**
- * Merge the contents of two or more objects together into the first object.
- *
- * @param target An object that will receive the new properties if additional objects are passed in or that will
- * extend the jQuery namespace if it is the sole argument.
- * @see {@link https://api.jquery.com/jQuery.extend/}
- * @since 1.0
- */
- extend(target: T, object1: U, object2: V): T & U & V;
- /**
- * Merge the contents of two or more objects together into the first object.
- *
- * @param target An object that will receive the new properties if additional objects are passed in or that will
- * extend the jQuery namespace if it is the sole argument.
- * @see {@link https://api.jquery.com/jQuery.extend/}
- * @since 1.0
- */
- extend(target: T, object1: U): T & U;
- /**
- * Merge the contents of two or more objects together into the first object.
- *
- * @param target An object that will receive the new properties if additional objects are passed in or that will
- * extend the jQuery namespace if it is the sole argument.
- * @see {@link https://api.jquery.com/jQuery.extend/}
- * @since 1.0
- */
- extend(target: any, object1: any, ...objects: any[]): any;
- /**
- * Load data from the server using a HTTP GET 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
- * you can use null or jQuery.noop as a placeholder.
- * @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.get/}
- * @since 1.0
- */
- get(url: string,
- data: JQuery.PlainObject | string,
- success: JQuery.jqXHR.DoneCallback | null,
- dataType?: string): JQuery.jqXHR;
- /**
- * Load data from the server using a HTTP GET request.
- *
- * @param url A string containing the URL to which the request is sent.
- * @param success A callback function that is executed if the request succeeds. Required if dataType is provided, but
- * you can use null or jQuery.noop as a placeholder.
- * @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.get/}
- * @since 1.0
- */
- get(url: string,
- success: JQuery.jqXHR.DoneCallback | null,
- dataType: string): JQuery.jqXHR;
- /**
- * Load data from the server using a HTTP GET request.
- *
- * @param url A string containing the URL to which the request is sent.
- * @param success_data A callback function that is executed if the request succeeds. Required if dataType is provided, but
- * you can use null or jQuery.noop as a placeholder.
- * A plain object or string that is sent to the server with the request.
- * @see {@link https://api.jquery.com/jQuery.get/}
- * @since 1.0
- */
- get(url: string,
- success_data: JQuery.jqXHR.DoneCallback | JQuery.PlainObject | string): JQuery.jqXHR;
- /**
- * Load data from the server using a HTTP GET request.
- *
- * @param url_settings A string containing the URL to which the request is sent.
- * 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 $.ajaxSetup(). See jQuery.ajax( settings ) for a
- * complete list of all settings. The type option will automatically be set to GET.
- * @see {@link https://api.jquery.com/jQuery.get/}
- * @since 1.0
- * @since 1.12
- * @since 2.2
- */
- get(url_settings?: string | JQuery.UrlAjaxSettings): JQuery.jqXHR;
- /**
- * Load JSON-encoded data from the server using a GET HTTP 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.
- * @see {@link https://api.jquery.com/jQuery.getJSON/}
- * @since 1.0
- */
- getJSON(url: string,
- data: JQuery.PlainObject | string,
- success: JQuery.jqXHR.DoneCallback): JQuery.jqXHR;
- /**
- * Load JSON-encoded data from the server using a GET HTTP request.
- *
- * @param url A string containing the URL to which the request is sent.
- * @param success_data A callback function that is executed if the request succeeds.
- * A plain object or string that is sent to the server with the request.
- * @see {@link https://api.jquery.com/jQuery.getJSON/}
- * @since 1.0
- */
- getJSON(url: string,
- success_data?: JQuery.jqXHR.DoneCallback | JQuery.PlainObject | string): JQuery.jqXHR;
- /**
- * Load a JavaScript file from the server using a GET HTTP request, then execute it.
- *
- * @param url A string containing the URL to which the request is sent.
- * @param success A callback function that is executed if the request succeeds.
- * @see {@link https://api.jquery.com/jQuery.getScript/}
- * @since 1.0
- */
- getScript(url: string,
- success?: JQuery.jqXHR.DoneCallback): JQuery.jqXHR;
- /**
- * Execute some JavaScript code globally.
- *
- * @param code The JavaScript code to execute.
- * @see {@link https://api.jquery.com/jQuery.globalEval/}
- * @since 1.0.4
- */
- globalEval(code: string): void;
- /**
- * Finds the elements of an array which satisfy a filter function. The original array is not affected.
- *
- * @param array The array-like object to search through.
- * @param fn The function to process each item against. The first argument to the function is the item, and the
- * second argument is the index. The function should return a Boolean value. this will be the global window object.
- * @param invert If "invert" is false, or not provided, then the function returns an array consisting of all elements
- * for which "callback" returns true. If "invert" is true, then the function returns an array
- * consisting of all elements for which "callback" returns false.
- * @see {@link https://api.jquery.com/jQuery.grep/}
- * @since 1.0
- */
- grep(array: ArrayLike,
- fn: (elementOfArray: T, indexInArray: number) => boolean,
- invert?: boolean): T[];
- /**
- * Determine whether an element has any jQuery data associated with it.
- *
- * @param element A DOM element to be checked for data.
- * @see {@link https://api.jquery.com/jQuery.hasData/}
- * @since 1.5
- */
- hasData(element: Element): boolean;
- /**
- * Holds or releases the execution of jQuery's ready event.
- *
- * @param hold Indicates whether the ready hold is being requested or released
- * @see {@link https://api.jquery.com/jQuery.holdReady/}
- * @since 1.6
- * @deprecated 3.2
- */
- holdReady(hold: boolean): void;
- /**
- * Modify and filter HTML strings passed through jQuery manipulation methods.
- *
- * @param html The HTML string on which to operate.
- * @see {@link https://api.jquery.com/jQuery.htmlPrefilter/}
- * @since 1.12/2.2
- */
- htmlPrefilter(html: JQuery.htmlString): JQuery.htmlString;
- /**
- * Search for a specified value within an array and return its index (or -1 if not found).
- *
- * @param value The value to search for.
- * @param array An array through which to search.
- * @param fromIndex The index of the array at which to begin the search. The default is 0, which will search the whole array.
- * @see {@link https://api.jquery.com/jQuery.inArray/}
- * @since 1.2
- */
- inArray(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 3.2
- */
- 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
- */
- 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
- */
- 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
- */
- isNumeric(value: any): value is number;
- /**
- * 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
- */
- isPlainObject(obj: any): obj is JQuery.PlainObject;
- /**
- * 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
- */
- 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
- */
- 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
- */
- 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
- */
- map(array: T[], callback: (elementOfArray: T, indexInArray: number) => R): R[];
- /**
- * 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
- */
- map(obj: T, callback: (propertyOfObject: T[K], key: K) => R): R[];
- /**
- * 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
- */
- 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
- */
- noConflict(removeAll?: boolean): this;
- /**
- * 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
- */
- 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
- */
- 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 Document element to serve as the context in which the HTML fragment will be created
- * 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_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 3.0
- */
- 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
- */
- 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
- */
- 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 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
- */
- post(url: 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 A callback function that is executed if the request succeeds. Required if dataType is provided, but
- * can be null in that case.
- * 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
- */
- 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 A string containing the URL to which the request is sent.
- * 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 $.ajaxSetup(). See 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
- */
- post(url_settings?: string | JQuery.UrlAjaxSettings): JQuery.jqXHR;
-
- // region proxy
-
- // region (fn, null | undefined)
-
- // region 0 to 7 arguments
-
- // region 0 parameters
-
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C, d: D, e: E, f: F, g: G) => TReturn,
- context: null | undefined,
- a: A, b: B, c: C, d: D, e: E, f: F, g: G): () => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C, d: D, e: E, f: F) => TReturn,
- context: null | undefined,
- a: A, b: B, c: C, d: D, e: E, f: F): () => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C, d: D, e: E) => TReturn,
- context: null | undefined,
- a: A, b: B, c: C, d: D, e: E): () => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C, d: D) => TReturn,
- context: null | undefined,
- a: A, b: B, c: C, d: D): () => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C) => TReturn,
- context: null | undefined,
- a: A, b: B, c: C): () => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B) => TReturn,
- context: null | undefined,
- a: A, b: B): () => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A) => TReturn,
- context: null | undefined,
- a: A): () => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: () => TReturn,
- context: null | undefined): () => TReturn;
-
- // endregion
-
- // region 1 parameters
-
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C, d: D, e: E, f: F, g: G,
- t: T) => TReturn,
- context: null | undefined,
- a: A, b: B, c: C, d: D, e: E, f: F, g: G): (t: T) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C, d: D, e: E, f: F,
- t: T) => TReturn,
- context: null | undefined,
- a: A, b: B, c: C, d: D, e: E, f: F): (t: T) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C, d: D, e: E,
- t: T) => TReturn,
- context: null | undefined,
- a: A, b: B, c: C, d: D, e: E): (t: T) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C, d: D,
- t: T) => TReturn,
- context: null | undefined,
- a: A, b: B, c: C, d: D): (t: T) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C,
- t: T) => TReturn,
- context: null | undefined,
- a: A, b: B, c: C): (t: T) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B,
- t: T) => TReturn,
- context: null | undefined,
- a: A, b: B): (t: T) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A,
- t: T) => TReturn,
- context: null | undefined,
- a: A): (t: T) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (t: T) => TReturn,
- context: null | undefined): (t: T) => TReturn;
-
- // endregion
-
- // region 2 parameters
-
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C, d: D, e: E, f: F, g: G,
- t: T, u: U) => TReturn,
- context: null | undefined,
- a: A, b: B, c: C, d: D, e: E, f: F, g: G): (t: T, u: U) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C, d: D, e: E, f: F,
- t: T, u: U) => TReturn,
- context: null | undefined,
- a: A, b: B, c: C, d: D, e: E, f: F): (t: T, u: U) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C, d: D, e: E,
- t: T, u: U) => TReturn,
- context: null | undefined,
- a: A, b: B, c: C, d: D, e: E): (t: T, u: U) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C, d: D,
- t: T, u: U) => TReturn,
- context: null | undefined,
- a: A, b: B, c: C, d: D): (t: T, u: U) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C,
- t: T, u: U) => TReturn,
- context: null | undefined,
- a: A, b: B, c: C): (t: T, u: U) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B,
- t: T, u: U) => TReturn,
- context: null | undefined,
- a: A, b: B): (t: T, u: U) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A,
- t: T, u: U) => TReturn,
- context: null | undefined,
- a: A): (t: T, u: U) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (t: T, u: U) => TReturn,
- context: null | undefined): (t: T, u: U) => TReturn;
-
- // endregion
-
- // region 3 parameters
-
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C, d: D, e: E, f: F, g: G,
- t: T, u: U, v: V) => TReturn,
- context: null | undefined,
- a: A, b: B, c: C, d: D, e: E, f: F, g: G): (t: T, u: U, v: V) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C, d: D, e: E, f: F,
- t: T, u: U, v: V) => TReturn,
- context: null | undefined,
- a: A, b: B, c: C, d: D, e: E, f: F): (t: T, u: U, v: V) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C, d: D, e: E,
- t: T, u: U, v: V) => TReturn,
- context: null | undefined,
- a: A, b: B, c: C, d: D, e: E): (t: T, u: U, v: V) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C, d: D,
- t: T, u: U, v: V) => TReturn,
- context: null | undefined,
- a: A, b: B, c: C, d: D): (t: T, u: U, v: V) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C,
- t: T, u: U, v: V) => TReturn,
- context: null | undefined,
- a: A, b: B, c: C): (t: T, u: U, v: V) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B,
- t: T, u: U, v: V) => TReturn,
- context: null | undefined,
- a: A, b: B): (t: T, u: U, v: V) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A,
- t: T, u: U, v: V) => TReturn,
- context: null | undefined,
- a: A): (t: T, u: U, v: V) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (t: T, u: U, v: V) => TReturn,
- context: null | undefined): (t: T, u: U, v: V) => TReturn;
-
- // endregion
-
- // region 4 parameters
-
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C, d: D, e: E, f: F, g: G,
- t: T, u: U, v: V, w: W) => TReturn,
- context: null | undefined,
- a: A, b: B, c: C, d: D, e: E, f: F, g: G): (t: T, u: U, v: V, w: W) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C, d: D, e: E, f: F,
- t: T, u: U, v: V, w: W) => TReturn,
- context: null | undefined,
- a: A, b: B, c: C, d: D, e: E, f: F): (t: T, u: U, v: V, w: W) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C, d: D, e: E,
- t: T, u: U, v: V, w: W) => TReturn,
- context: null | undefined,
- a: A, b: B, c: C, d: D, e: E): (t: T, u: U, v: V, w: W) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C, d: D,
- t: T, u: U, v: V, w: W) => TReturn,
- context: null | undefined,
- a: A, b: B, c: C, d: D): (t: T, u: U, v: V, w: W) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C,
- t: T, u: U, v: V, w: W) => TReturn,
- context: null | undefined,
- a: A, b: B, c: C): (t: T, u: U, v: V, w: W) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B,
- t: T, u: U, v: V, w: W) => TReturn,
- context: null | undefined,
- a: A, b: B): (t: T, u: U, v: V, w: W) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A,
- t: T, u: U, v: V, w: W) => TReturn,
- context: null | undefined,
- a: A): (t: T, u: U, v: V, w: W) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (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
-
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C, d: D, e: E, f: F, g: G,
- t: T, u: U, v: V, w: W, x: X) => TReturn,
- context: null | undefined,
- a: A, b: B, c: C, d: D, e: E, f: F, g: G): (t: T, u: U, v: V, w: W, x: X) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C, d: D, e: E, f: F,
- t: T, u: U, v: V, w: W, x: X) => TReturn,
- context: null | undefined,
- a: A, b: B, c: C, d: D, e: E, f: F): (t: T, u: U, v: V, w: W, x: X) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C, d: D, e: E,
- t: T, u: U, v: V, w: W, x: X) => TReturn,
- context: null | undefined,
- a: A, b: B, c: C, d: D, e: E): (t: T, u: U, v: V, w: W, x: X) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C, d: D,
- t: T, u: U, v: V, w: W, x: X) => TReturn,
- context: null | undefined,
- a: A, b: B, c: C, d: D): (t: T, u: U, v: V, w: W, x: X) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C,
- t: T, u: U, v: V, w: W, x: X) => TReturn,
- context: null | undefined,
- a: A, b: B, c: C): (t: T, u: U, v: V, w: W, x: X) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B,
- t: T, u: U, v: V, w: W, x: X) => TReturn,
- context: null | undefined,
- a: A, b: B): (t: T, u: U, v: V, w: W, x: X) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A,
- t: T, u: U, v: V, w: W, x: X) => TReturn,
- context: null | undefined,
- a: A): (t: T, u: U, v: V, w: W, x: X) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (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
-
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C, d: D, e: E, f: F, g: G,
- t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn,
- context: null | undefined,
- a: A, b: B, c: C, d: D, e: E, f: F, g: G): (t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C, d: D, e: E, f: F,
- t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn,
- context: null | undefined,
- a: A, b: B, c: C, d: D, e: E, f: F): (t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C, d: D, e: E,
- t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn,
- context: null | undefined,
- a: A, b: B, c: C, d: D, e: E): (t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C, d: D,
- t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn,
- context: null | undefined,
- a: A, b: B, c: C, d: D): (t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C,
- t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn,
- context: null | undefined,
- a: A, b: B, c: C): (t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B,
- t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn,
- context: null | undefined,
- a: A, b: B): (t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A,
- t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn,
- context: null | undefined,
- a: A): (t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (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
-
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C, d: D, e: E, f: F, g: G,
- t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn,
- context: null | undefined,
- a: A, b: B, c: C, d: D, e: E, f: F, g: G): (t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C, d: D, e: E, f: F,
- t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn,
- context: null | undefined,
- a: A, b: B, c: C, d: D, e: E, f: F): (t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C, d: D, e: E,
- t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn,
- context: null | undefined,
- a: A, b: B, c: C, d: D, e: E): (t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C, d: D,
- t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn,
- context: null | undefined,
- a: A, b: B, c: C, d: D): (t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C,
- t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn,
- context: null | undefined,
- a: A, b: B, c: C): (t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B,
- t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn,
- context: null | undefined,
- a: A, b: B): (t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A,
- t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn,
- context: null | undefined,
- a: A): (t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (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+ arguments
-
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (...args: any[]) => TReturn,
- context: null | undefined,
- ...additionalArguments: any[]): (...args: any[]) => TReturn;
-
- // endregion
-
- // endregion
-
- // region (fn, context)
-
- // region 0 to 7 arguments
-
- // region 0 parameters
-
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C, d: D, e: E, f: F, g: G) => TReturn,
- context: TContext,
- a: A, b: B, c: C, d: D, e: E, f: F, g: G): (this: TContext) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C, d: D, e: E, f: F) => TReturn,
- context: TContext,
- a: A, b: B, c: C, d: D, e: E, f: F): (this: TContext) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C, d: D, e: E) => TReturn,
- context: TContext,
- a: A, b: B, c: C, d: D, e: E): (this: TContext) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C, d: D) => TReturn,
- context: TContext,
- a: A, b: B, c: C, d: D): (this: TContext) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C) => TReturn,
- context: TContext,
- a: A, b: B, c: C): (this: TContext) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B) => TReturn,
- context: TContext,
- a: A, b: B): (this: TContext) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A) => TReturn,
- context: TContext,
- a: A): (this: TContext) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: () => TReturn,
- context: TContext): (this: TContext) => TReturn;
-
- // endregion
-
- // region 1 parameters
-
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C, d: D, e: E, f: F, g: G,
- t: T) => TReturn,
- context: TContext,
- a: A, b: B, c: C, d: D, e: E, f: F, g: G): (this: TContext, t: T) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C, d: D, e: E, f: F,
- t: T) => TReturn,
- context: TContext,
- a: A, b: B, c: C, d: D, e: E, f: F): (this: TContext, t: T) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C, d: D, e: E,
- t: T) => TReturn,
- context: TContext,
- a: A, b: B, c: C, d: D, e: E): (this: TContext, t: T) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C, d: D,
- t: T) => TReturn,
- context: TContext,
- a: A, b: B, c: C, d: D): (this: TContext, t: T) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C,
- t: T) => TReturn,
- context: TContext,
- a: A, b: B, c: C): (this: TContext, t: T) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B,
- t: T) => TReturn,
- context: TContext,
- a: A, b: B): (this: TContext, t: T) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A,
- t: T) => TReturn,
- context: TContext,
- a: A): (this: TContext, t: T) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (t: T) => TReturn,
- context: TContext): (this: TContext, t: T) => TReturn;
-
- // endregion
-
- // region 2 parameters
-
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C, d: D, e: E, f: F, g: G,
- t: T, u: U) => TReturn,
- context: TContext,
- a: A, b: B, c: C, d: D, e: E, f: F, g: G): (this: TContext, t: T, u: U) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C, d: D, e: E, f: F,
- t: T, u: U) => TReturn,
- context: TContext,
- a: A, b: B, c: C, d: D, e: E, f: F): (this: TContext, t: T, u: U) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C, d: D, e: E,
- t: T, u: U) => TReturn,
- context: TContext,
- a: A, b: B, c: C, d: D, e: E): (this: TContext, t: T, u: U) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C, d: D,
- t: T, u: U) => TReturn,
- context: TContext,
- a: A, b: B, c: C, d: D): (this: TContext, t: T, u: U) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C,
- t: T, u: U) => TReturn,
- context: TContext,
- a: A, b: B, c: C): (this: TContext, t: T, u: U) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B,
- t: T, u: U) => TReturn,
- context: TContext,
- a: A, b: B): (this: TContext, t: T, u: U) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A,
- t: T, u: U) => TReturn,
- context: TContext,
- a: A): (this: TContext, t: T, u: U) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (t: T, u: U) => TReturn,
- context: TContext): (this: TContext, t: T, u: U) => TReturn;
-
- // endregion
-
- // region 3 parameters
-
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C, d: D, e: E, f: F, g: G,
- t: T, u: U, v: V) => TReturn,
- context: TContext,
- a: A, b: B, c: C, d: D, e: E, f: F, g: G): (this: TContext, t: T, u: U, v: V) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C, d: D, e: E, f: F,
- t: T, u: U, v: V) => TReturn,
- context: TContext,
- a: A, b: B, c: C, d: D, e: E, f: F): (this: TContext, t: T, u: U, v: V) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C, d: D, e: E,
- t: T, u: U, v: V) => TReturn,
- context: TContext,
- a: A, b: B, c: C, d: D, e: E): (this: TContext, t: T, u: U, v: V) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C, d: D,
- t: T, u: U, v: V) => TReturn,
- context: TContext,
- a: A, b: B, c: C, d: D): (this: TContext, t: T, u: U, v: V) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C,
- t: T, u: U, v: V) => TReturn,
- context: TContext,
- a: A, b: B, c: C): (this: TContext, t: T, u: U, v: V) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B,
- t: T, u: U, v: V) => TReturn,
- context: TContext,
- a: A, b: B): (this: TContext, t: T, u: U, v: V) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A,
- t: T, u: U, v: V) => TReturn,
- context: TContext,
- a: A): (this: TContext, t: T, u: U, v: V) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (t: T, u: U, v: V) => TReturn,
- context: TContext): (this: TContext, t: T, u: U, v: V) => TReturn;
-
- // endregion
-
- // region 4 parameters
-
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C, d: D, e: E, f: F, g: G,
- t: T, u: U, v: V, w: W) => TReturn,
- context: TContext,
- a: A, b: B, c: C, d: D, e: E, f: F, g: G): (this: TContext, t: T, u: U, v: V, w: W) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C, d: D, e: E, f: F,
- t: T, u: U, v: V, w: W) => TReturn,
- context: TContext,
- a: A, b: B, c: C, d: D, e: E, f: F): (this: TContext, t: T, u: U, v: V, w: W) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C, d: D, e: E,
- t: T, u: U, v: V, w: W) => TReturn,
- context: TContext,
- a: A, b: B, c: C, d: D, e: E): (this: TContext, t: T, u: U, v: V, w: W) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C, d: D,
- t: T, u: U, v: V, w: W) => TReturn,
- context: TContext,
- a: A, b: B, c: C, d: D): (this: TContext, t: T, u: U, v: V, w: W) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C,
- t: T, u: U, v: V, w: W) => TReturn,
- context: TContext,
- a: A, b: B, c: C): (this: TContext, t: T, u: U, v: V, w: W) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B,
- t: T, u: U, v: V, w: W) => TReturn,
- context: TContext,
- a: A, b: B): (this: TContext, t: T, u: U, v: V, w: W) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A,
- t: T, u: U, v: V, w: W) => TReturn,
- context: TContext,
- a: A): (this: TContext, t: T, u: U, v: V, w: W) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (t: T, u: U, v: V, w: W) => TReturn,
- context: TContext): (this: TContext, t: T, u: U, v: V, w: W) => TReturn;
-
- // endregion
-
- // region 5 parameters
-
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C, d: D, e: E, f: F, g: G,
- t: T, u: U, v: V, w: W, x: X) => TReturn,
- context: TContext,
- a: A, b: B, c: C, d: D, e: E, f: F, g: G): (this: TContext, t: T, u: U, v: V, w: W, x: X) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C, d: D, e: E, f: F,
- t: T, u: U, v: V, w: W, x: X) => TReturn,
- context: TContext,
- a: A, b: B, c: C, d: D, e: E, f: F): (this: TContext, t: T, u: U, v: V, w: W, x: X) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C, d: D, e: E,
- t: T, u: U, v: V, w: W, x: X) => TReturn,
- context: TContext,
- a: A, b: B, c: C, d: D, e: E): (this: TContext, t: T, u: U, v: V, w: W, x: X) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C, d: D,
- t: T, u: U, v: V, w: W, x: X) => TReturn,
- context: TContext,
- a: A, b: B, c: C, d: D): (this: TContext, t: T, u: U, v: V, w: W, x: X) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C,
- t: T, u: U, v: V, w: W, x: X) => TReturn,
- context: TContext,
- a: A, b: B, c: C): (this: TContext, t: T, u: U, v: V, w: W, x: X) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B,
- t: T, u: U, v: V, w: W, x: X) => TReturn,
- context: TContext,
- a: A, b: B): (this: TContext, t: T, u: U, v: V, w: W, x: X) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A,
- t: T, u: U, v: V, w: W, x: X) => TReturn,
- context: TContext,
- a: A): (this: TContext, t: T, u: U, v: V, w: W, x: X) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (t: T, u: U, v: V, w: W, x: X) => TReturn,
- context: TContext): (this: TContext, t: T, u: U, v: V, w: W, x: X) => TReturn;
-
- // endregion
-
- // region 6 parameters
-
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C, d: D, e: E, f: F, g: G,
- t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn,
- context: TContext,
- a: A, b: B, c: C, d: D, e: E, f: F, g: G): (this: TContext, t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C, d: D, e: E, f: F,
- t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn,
- context: TContext,
- a: A, b: B, c: C, d: D, e: E, f: F): (this: TContext, t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C, d: D, e: E,
- t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn,
- context: TContext,
- a: A, b: B, c: C, d: D, e: E): (this: TContext, t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C, d: D,
- t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn,
- context: TContext,
- a: A, b: B, c: C, d: D): (this: TContext, t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C,
- t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn,
- context: TContext,
- a: A, b: B, c: C): (this: TContext, t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B,
- t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn,
- context: TContext,
- a: A, b: B): (this: TContext, t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A,
- t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn,
- context: TContext,
- a: A): (this: TContext, t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn,
- context: TContext): (this: TContext, t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn;
-
- // endregion
-
- // region 7+ parameters
-
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C, d: D, e: E, f: F, g: G,
- t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn,
- context: TContext,
- a: A, b: B, c: C, d: D, e: E, f: F, g: G): (this: TContext, t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C, d: D, e: E, f: F,
- t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn,
- context: TContext,
- a: A, b: B, c: C, d: D, e: E, f: F): (this: TContext, t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C, d: D, e: E,
- t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn,
- context: TContext,
- a: A, b: B, c: C, d: D, e: E): (this: TContext, t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C, d: D,
- t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn,
- context: TContext,
- a: A, b: B, c: C, d: D): (this: TContext, t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B, c: C,
- t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn,
- context: TContext,
- a: A, b: B, c: C): (this: TContext, t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A, b: B,
- t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn,
- context: TContext,
- a: A, b: B): (this: TContext, t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (a: A,
- t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn,
- context: TContext,
- a: A): (this: TContext, t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn;
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn,
- context: TContext): (this: TContext, t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn;
-
- // endregion
-
- // endregion
-
- // region 8+ arguments
-
- /**
- * Takes a function and returns a new one that will always have a particular context.
- *
- * @param fn The function whose context will be changed.
- * @param 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
- */
- proxy(fn: (...args: any[]) => TReturn,
- context: TContext,
- ...additionalArguments: any[]): (this: TContext, ...args: any[]) => TReturn;
-
- // endregion
-
- // endregion
-
- // 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
- */
- proxy(context: TContext,
- name: keyof TContext,
- ...additionalArguments: any[]): (this: TContext, ...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
- */
- 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
- */
- 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
- */
- removeData(element: Element, 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 A string indicating which easing function to use for the transition.
- * 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 A string or number determining how long the animation will run.
- * 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_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
- */
- 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
- */
- 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 3.0
- */
- 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
- */
- 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
- */
- when
- (deferredT: JQuery.Promise | JQuery.Thenable | TR1,
- deferredU: JQuery.Promise | JQuery.Thenable | UR1,
- deferredV: JQuery.Promise | JQuery.Thenable | VR1): JQuery.Promise3;
- /**
- * 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
- */
- when
- (deferredT: JQuery.Promise | JQuery.Thenable | TR1,
- deferredU: JQuery.Promise | JQuery.Thenable | UR1): JQuery.Promise2;
- /**
- * 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
- */
- when
- (deferredT: JQuery.Promise3 |
- JQuery.Promise2): JQuery.Promise3;
- /**
- * 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
- */
- 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
- */
- 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
- */
- when(...deferreds: any[]): JQuery.Promise;
-}
-
-interface JQuery extends Iterable {
+interface JQuery extends Iterable {
/**
* A string containing the jQuery version number.
- *
- * @see {@link https://api.jquery.com/jquery/}
+ * @see \`{@link https://api.jquery.com/jquery-2/#jquery1 }\`
* @since 1.0
+ * @example ````Determine if an object is a jQuery object
+```javascript
+var a = { what: "A regular JS object" },
+ b = $( "body" );
+
+if ( a.jquery ) { // Falsy, since it's undefined
+ alert( "a is a jQuery object!" );
+}
+
+if ( b.jquery ) { // Truthy, since it's a string
+ alert( "b is a jQuery object!" );
+}
+```
+ * @example ````Get the current version of jQuery running on the page
+```javascript
+alert( "You are running jQuery version: " + $.fn.jquery );
+```
*/
jquery: string;
/**
* The number of elements in the jQuery object.
- *
- * @see {@link https://api.jquery.com/length/}
+ * @see \`{@link https://api.jquery.com/length/ }\`
* @since 1.0
+ * @example ````Count the divs. Click to add more.
+```html
+
+
+
+
+ length demo
+
+
+
+
+
+
+
+
+
+
+```
*/
length: number;
/**
* Create a new jQuery object with elements added to the set of matched elements.
- *
* @param selector A string representing a selector expression to find additional elements to add to the set of matched elements.
* @param context The point in the document at which the selector should begin matching; similar to the context
* argument of the $(selector, context) method.
- * @see {@link https://api.jquery.com/add/}
+ * @see \`{@link https://api.jquery.com/add/ }\`
* @since 1.4
*/
add(selector: JQuery.Selector, context: Element): this;
+ // TODO: The return type should reflect newly selected types.
/**
* Create a new jQuery object with elements added to the set of matched elements.
- *
- * @param selector A string representing a selector expression to find additional elements to add to the set of matched elements.
- * One or more elements to add to the set of matched elements.
- * An HTML fragment to add to the set of matched elements.
- * An existing jQuery object to add to the set of matched elements.
- * @see {@link https://api.jquery.com/add/}
+ * @param selector_elements_html_selection _@param_ `selector_elements_html_selection`
+ *
+ * * `selector` — A string representing a selector expression to find additional elements to add to the set of matched elements.
+ * * `elements` — One or more elements to add to the set of matched elements.
+ * * `html` — An HTML fragment to add to the set of matched elements.
+ * * `selection` — An existing jQuery object to add to the set of matched elements.
+ * @see \`{@link https://api.jquery.com/add/ }\`
* @since 1.0
* @since 1.3.2
+ * @example ````Finds all divs and makes a border. Then adds all paragraphs to the jQuery object to set their backgrounds yellow.
+```html
+
+
+
+
+ add demo
+
+
+
+
+
+
+
+
+
+
+
+
+
Added this... (notice no border)
+
+
+
+
+
+```
+ * @example ````Adds more elements, matched by the given expression, to the set of matched elements.
+```html
+
+
+
+
+ add demo
+
+
+
+
+
Hello
+Hello Again
+
+
+
+
+
+```
+ * @example ````Adds more elements, created on the fly, to the set of matched elements.
+```html
+
+
+
+
+ add demo
+
+
+
+
+
Hello
+
+
+
+
+
+```
+ * @example ````Adds one or more Elements to the set of matched elements.
+```html
+
+
+
+
+ add demo
+
+
+
+
+
Hello
+Hello Again
+
+
+
+
+
+```
+ * @example ````Demonstrates how to add (or push) elements to an existing collection
+```html
+
+
+
+
+ add demo
+
+
+
+
+
Hello
+Hello Again
+
+
+
+
+
+```
*/
- add(selector: JQuery.Selector | JQuery.TypeOrArray | JQuery.htmlString | JQuery): this;
+ add(selector_elements_html_selection: JQuery.Selector | JQuery.TypeOrArray | JQuery.htmlString | JQuery | JQuery.Node): this;
/**
* Add the previous set of elements on the stack to the current set, optionally filtered by a selector.
- *
* @param selector A string containing a selector expression to match the current set of elements against.
- * @see {@link https://api.jquery.com/addBack/}
+ * @see \`{@link https://api.jquery.com/addBack/ }\`
* @since 1.8
+ * @example ````The .addBack() method causes the previous set of DOM elements in the traversal stack to be added to the current set. In the first example, the top stack contains the set resulting from .find("p"). In the second example, .addBack() adds the previous set of elements on the stack — in this case $("div.after-addback") — to the current set, selecting both the div and its enclosed paragraphs.
+```html
+
+
+
+
+ addBack demo
+
+
+
+
+
+
+
Before addBack()
+
+
First Paragraph
+
Second Paragraph
+
+
+
+
After addBack()
+
+
First Paragraph
+
Second Paragraph
+
+
+
+
+
+
+
+```
*/
addBack(selector?: JQuery.Selector): this;
/**
* Adds the specified class(es) to each element in the set of matched elements.
- *
- * @param className One or more space-separated classes to be added to the class attribute of each matched element.
- * A function returning one or more space-separated class names to be added to the existing class
- * name(s). Receives the index position of the element in the set and the existing class name(s) as
- * arguments. Within the function, this refers to the current element in the set.
- * @see {@link https://api.jquery.com/addClass/}
+ * @param className_function _@param_ `className_function`
+ *
+ * * `className` — One or more space-separated classes to be added to the class attribute of each matched element.
+ * * `function` — A function returning one or more space-separated class names to be added to the existing class
+ * name(s). Receives the index position of the element in the set and the existing class name(s) as
+ * arguments. Within the function, `this` refers to the current element in the set.
+ * @see \`{@link https://api.jquery.com/addClass/ }\`
* @since 1.0
* @since 1.4
+ * @since 3.3
+ * @example ````Add the class "selected" to the matched elements.
+```html
+
+
+
+
+ addClass demo
+
+
+
+
+
+
Hello
+
and
+
Goodbye
+
+
+
+
+
+```
+ * @example ````Add the classes "selected" and "highlight" to the matched elements.
+```html
+
+
+
+
+ addClass demo
+
+
+
+
+
+
Hello
+
and
+
Goodbye
+
+
+
+
+
+```
+ * @example ````Pass in a function to .addClass() to add the "green" class to a div that already has a "red" class.
+```html
+
+
+
+
+ addClass demo
+
+
+
+
+
+
This div should be white
+
This div will be green because it now has the "green" and "red" classes.
+ It would be red if the addClass function failed.
+
This div should be white
+
There are zero green divs
+
+
+
+
+
+```
*/
- addClass(className: string | ((this: TElement, index: number, currentClassName: string) => string)): this;
+ addClass(className_function: JQuery.TypeOrArray | ((this: TElement, index: number, currentClassName: string) => string)): this;
/**
* Insert content, specified by the parameter, after each element in the set of matched elements.
- *
* @param contents One or more additional DOM elements, text nodes, arrays of elements and text nodes, HTML strings, or
* jQuery objects to insert after each element in the set of matched elements.
- * @see {@link https://api.jquery.com/after/}
+ * @see \`{@link https://api.jquery.com/after/ }\`
* @since 1.0
+ * @example ````Inserts some HTML after all paragraphs.
+```html
+
+
+
+
+ after demo
+
+
+
+
+
+
I would like to say:
+
+
+
+
+
+```
+ * @example ````Inserts a DOM element after all paragraphs.
+```html
+
+
+
+
+ after demo
+
+
+
+
+
+
I would like to say:
+
+
+
+
+
+```
+ * @example ````Inserts a jQuery object (similar to an Array of DOM Elements) after all paragraphs.
+```html
+
+
+
+
+ after demo
+
+
+
+
+
+Hello
+
I would like to say:
+
+
+
+
+
+```
*/
after(...contents: Array>>): this;
/**
* Insert content, specified by the parameter, after each element in the set of matched elements.
- *
- * @param fn A function that returns an HTML string, DOM element(s), text node(s), or jQuery object to insert
- * after each element in the set of matched elements. Receives the index position of the element in the
- * set and the old HTML value of the element as arguments. Within the function, this refers to the
- * current element in the set.
- * @see {@link https://api.jquery.com/after/}
+ * @param function_functionーhtml _@param_ `function_functionーhtml`
+ *
+ * * `function` — A function that returns an HTML string, DOM element(s), text node(s), or jQuery object to insert
+ * after each element in the set of matched elements. Receives the index position of the element in the
+ * set as an argument. Within the function, `this` refers to the current element in the set.
+ * * `functionーhtml` — A function that returns an HTML string, DOM element(s), text node(s), or jQuery object to insert
+ * after each element in the set of matched elements. Receives the index position of the element in the
+ * set and the old HTML value of the element as arguments. Within the function, `this` refers to the
+ * current element in the set.
+ * @see \`{@link https://api.jquery.com/after/ }\`
* @since 1.4
* @since 1.10
*/
- after(fn: (this: TElement, index: number, html: string) => JQuery.htmlString | JQuery.TypeOrArray>): this;
+ after(function_functionーhtml: (this: TElement, index: number, html: string) => JQuery.htmlString | JQuery.TypeOrArray>): this;
/**
* Register a handler to be called when Ajax requests complete. This is an AjaxEvent.
- *
* @param handler The function to be invoked.
- * @see {@link https://api.jquery.com/ajaxComplete/}
+ * @see \`{@link https://api.jquery.com/ajaxComplete/ }\`
* @since 1.0
+ * @example ````Show a message when an Ajax request completes.
+```javascript
+$( document ).ajaxComplete(function( event, request, settings ) {
+ $( "#msg" ).append( "
Request Complete.
" );
+});
+```
*/
- ajaxComplete(handler: (this: Document, event: JQuery.Event, jqXHR: JQuery.jqXHR, ajaxOptions: JQuery.AjaxSettings) => void | false): this;
+ ajaxComplete(handler: (this: Document,
+ event: JQuery.TriggeredEvent,
+ jqXHR: JQuery.jqXHR,
+ ajaxOptions: JQuery.AjaxSettings) => void | false): this;
/**
* Register a handler to be called when Ajax requests complete with an error. This is an Ajax Event.
- *
* @param handler The function to be invoked.
- * @see {@link https://api.jquery.com/ajaxError/}
+ * @see \`{@link https://api.jquery.com/ajaxError/ }\`
* @since 1.0
+ * @example ````Show a message when an Ajax request fails.
+```javascript
+$( document ).ajaxError(function( event, request, settings ) {
+ $( "#msg" ).append( "
Error requesting page " + settings.url + "
" );
+});
+```
*/
- ajaxError(handler: (this: Document, event: JQuery.Event, jqXHR: JQuery.jqXHR, ajaxSettings: JQuery.AjaxSettings, thrownError: string) => void | false): this;
+ ajaxError(handler: (this: Document,
+ event: JQuery.TriggeredEvent,
+ jqXHR: JQuery.jqXHR,
+ ajaxSettings: JQuery.AjaxSettings,
+ thrownError: string) => void | false): this;
/**
* Attach a function to be executed before an Ajax request is sent. This is an Ajax Event.
- *
* @param handler The function to be invoked.
- * @see {@link https://api.jquery.com/ajaxSend/}
+ * @see \`{@link https://api.jquery.com/ajaxSend/ }\`
* @since 1.0
+ * @example ````Show a message before an Ajax request is sent.
+```javascript
+$( document ).ajaxSend(function( event, request, settings ) {
+ $( "#msg" ).append( "
Starting request at " + settings.url + "
" );
+});
+```
*/
- ajaxSend(handler: (this: Document, event: JQuery.Event, jqXHR: JQuery.jqXHR, ajaxOptions: JQuery.AjaxSettings) => void | false): this;
+ ajaxSend(handler: (this: Document,
+ event: JQuery.TriggeredEvent,
+ jqXHR: JQuery.jqXHR,
+ ajaxOptions: JQuery.AjaxSettings) => void | false): this;
/**
* Register a handler to be called when the first Ajax request begins. This is an Ajax Event.
- *
* @param handler The function to be invoked.
- * @see {@link https://api.jquery.com/ajaxStart/}
+ * @see \`{@link https://api.jquery.com/ajaxStart/ }\`
* @since 1.0
+ * @example ````Show a loading message whenever an Ajax request starts (and none is already active).
+```javascript
+$( document ).ajaxStart(function() {
+ $( "#loading" ).show();
+});
+```
*/
ajaxStart(handler: (this: Document) => void | false): this;
/**
* Register a handler to be called when all Ajax requests have completed. This is an Ajax Event.
- *
* @param handler The function to be invoked.
- * @see {@link https://api.jquery.com/ajaxStop/}
+ * @see \`{@link https://api.jquery.com/ajaxStop/ }\`
* @since 1.0
+ * @example ````Hide a loading message after all the Ajax requests have stopped.
+```javascript
+$( document ).ajaxStop(function() {
+ $( "#loading" ).hide();
+});
+```
*/
ajaxStop(handler: (this: Document) => void | false): this;
/**
* Attach a function to be executed whenever an Ajax request completes successfully. This is an Ajax Event.
- *
* @param handler The function to be invoked.
- * @see {@link https://api.jquery.com/ajaxSuccess/}
+ * @see \`{@link https://api.jquery.com/ajaxSuccess/ }\`
* @since 1.0
+ * @example ````Show a message when an Ajax request completes successfully.
+```javascript
+$( document ).ajaxSuccess(function( event, request, settings ) {
+ $( "#msg" ).append( "
Successful Request!
" );
+});
+```
*/
- ajaxSuccess(handler: (this: Document, event: JQuery.Event, jqXHR: JQuery.jqXHR, ajaxOptions: JQuery.AjaxSettings, data: JQuery.PlainObject) => void | false): this;
+ ajaxSuccess(handler: (this: Document,
+ event: JQuery.TriggeredEvent,
+ jqXHR: JQuery.jqXHR,
+ ajaxOptions: JQuery.AjaxSettings,
+ data: JQuery.PlainObject) => void | false): this;
/**
* Perform a custom animation of a set of CSS properties.
- *
* @param properties An object of CSS properties and values that the animation will move toward.
* @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/animate/}
+ * @see \`{@link https://api.jquery.com/animate/ }\`
* @since 1.0
+ * @example ````An example of using an 'easing' function to provide a different style of animation. This will only work if you have a plugin that provides this easing function. Note, this code will do nothing unless the paragraph element is hidden.
+```javascript
+$( "p" ).animate({
+ opacity: "show"
+}, "slow", "easein" );
+```
+ * @example ````Animate all paragraphs and execute a callback function when the animation is complete. The first argument is an object of CSS properties, the second specifies that the animation should take 1000 milliseconds to complete, the third states the easing type, and the fourth argument is an anonymous callback function.
+```javascript
+$( "p" ).animate({
+ height: 200,
+ width: 400,
+ opacity: 0.5
+}, 1000, "linear", function() {
+ alert( "all done" );
+});
+```
*/
animate(properties: JQuery.PlainObject,
duration: JQuery.Duration,
@@ -3100,4928 +642,12301 @@ interface JQuery