mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
fix double quote issues
This commit is contained in:
parent
f80a6f9b96
commit
84013e2ef0
|
@ -362,7 +362,7 @@ suite('Tests for Expand Abbreviations (HTML)', () => {
|
|||
});
|
||||
|
||||
test('Expand html when inside script tag with javascript type if js is mapped to html (HTML)', async () => {
|
||||
await workspace.getConfiguration('emmet').update('includeLanguages', { "javascript": "html" }, ConfigurationTarget.Global);
|
||||
await workspace.getConfiguration('emmet').update('includeLanguages', { 'javascript': 'html' }, ConfigurationTarget.Global);
|
||||
await withRandomFileEditor(htmlContents, 'html', async (editor, _doc) => {
|
||||
editor.selection = new Selection(24, 10, 24, 10);
|
||||
let expandPromise = expandEmmetAbbreviation(null);
|
||||
|
@ -378,7 +378,7 @@ suite('Tests for Expand Abbreviations (HTML)', () => {
|
|||
test('Expand html in completion list when inside script tag with javascript type if js is mapped to html (HTML)', async () => {
|
||||
const abbreviation = 'span.bye';
|
||||
const expandedText = '<span class="bye"></span>';
|
||||
await workspace.getConfiguration('emmet').update('includeLanguages', { "javascript": "html" }, ConfigurationTarget.Global);
|
||||
await workspace.getConfiguration('emmet').update('includeLanguages', { 'javascript': 'html' }, ConfigurationTarget.Global);
|
||||
await withRandomFileEditor(htmlContents, 'html', async (editor, _doc) => {
|
||||
editor.selection = new Selection(24, 10, 24, 10);
|
||||
const cancelSrc = new CancellationTokenSource();
|
||||
|
@ -448,7 +448,7 @@ suite('Tests for jsx, xml and xsl', () => {
|
|||
});
|
||||
|
||||
test('Expand abbreviation with single quotes for jsx', async () => {
|
||||
await workspace.getConfiguration('emmet').update('syntaxProfiles', { jsx: { "attr_quotes": "single" } }, ConfigurationTarget.Global);
|
||||
await workspace.getConfiguration('emmet').update('syntaxProfiles', { jsx: { 'attr_quotes': 'single' } }, ConfigurationTarget.Global);
|
||||
return withRandomFileEditor('img', 'javascriptreact', async (editor, _doc) => {
|
||||
editor.selection = new Selection(0, 6, 0, 6);
|
||||
await expandEmmetAbbreviation({ language: 'javascriptreact' });
|
||||
|
|
|
@ -1721,7 +1721,7 @@ export class Repository implements Disposable {
|
|||
|
||||
if (branchName) {
|
||||
// '{0}' will be replaced by the corresponding key-command later in the process, which is why it needs to stay.
|
||||
this._sourceControl.inputBox.placeholder = localize('commitMessageWithHeadLabel', "Message ({0} to commit on '{1}')", "{0}", branchName);
|
||||
this._sourceControl.inputBox.placeholder = localize('commitMessageWithHeadLabel', "Message ({0} to commit on '{1}')", '{0}', branchName);
|
||||
} else {
|
||||
this._sourceControl.inputBox.placeholder = localize('commitMessage', "Message ({0} to commit)");
|
||||
}
|
||||
|
|
|
@ -34,7 +34,7 @@ interface JQueryAjaxSettings {
|
|||
/**
|
||||
* A pre-request callback function that can be used to modify the jqXHR (in jQuery 1.4.x, XMLHTTPRequest) object before it is sent. Use this to set custom headers, etc. The jqXHR and settings objects are passed as arguments. This is an Ajax Event. Returning false in the beforeSend function will cancel the request. As of jQuery 1.5, the beforeSend option will be called regardless of the type of request.
|
||||
*/
|
||||
beforeSend? (jqXHR: JQueryXHR, settings: JQueryAjaxSettings): any;
|
||||
beforeSend?(jqXHR: JQueryXHR, settings: JQueryAjaxSettings): any;
|
||||
/**
|
||||
* If set to false, it will force requested pages not to be cached by the browser. Note: Setting cache to false will only work correctly with HEAD and GET requests. It works by appending "_={timestamp}" to the GET parameters. The parameter is not needed for other types of requests, except in IE8 when a POST is made to a URL that has already been requested by a GET.
|
||||
*/
|
||||
|
@ -42,7 +42,7 @@ interface JQueryAjaxSettings {
|
|||
/**
|
||||
* A function to be called when the request finishes (after success and error callbacks are executed). The function gets passed two arguments: The jqXHR (in jQuery 1.4.x, XMLHTTPRequest) object and a string categorizing the status of the request ("success", "notmodified", "error", "timeout", "abort", or "parsererror"). As of jQuery 1.5, the complete setting can accept an array of functions. Each function will be called in turn. This is an Ajax Event.
|
||||
*/
|
||||
complete? (jqXHR: JQueryXHR, textStatus: string): any;
|
||||
complete?(jqXHR: JQueryXHR, textStatus: string): any;
|
||||
/**
|
||||
* An object of string/regular-expression pairs that determine how jQuery will parse the response, given its content type. (version added: 1.5)
|
||||
*/
|
||||
|
@ -72,7 +72,7 @@ interface JQueryAjaxSettings {
|
|||
/**
|
||||
* A function to be used to handle the raw response data of XMLHttpRequest.This is a pre-filtering function to sanitize the response. You should return the sanitized data. The function accepts two arguments: The raw data returned from the server and the 'dataType' parameter.
|
||||
*/
|
||||
dataFilter? (data: any, ty: any): any;
|
||||
dataFilter?(data: any, ty: any): any;
|
||||
/**
|
||||
* The type of data that you're expecting back from the server. If none is specified, jQuery will try to infer it based on the MIME type of the response (an XML MIME type will yield XML, in 1.4 JSON will yield a JavaScript object, in 1.4 script will execute the script, and anything else will be returned as a string).
|
||||
*/
|
||||
|
@ -80,7 +80,7 @@ interface JQueryAjaxSettings {
|
|||
/**
|
||||
* A function to be called if the request fails. The function receives three arguments: The jqXHR (in jQuery 1.4.x, XMLHttpRequest) object, a string describing the type of error that occurred and an optional exception object, if one occurred. Possible values for the second argument (besides null) are "timeout", "error", "abort", and "parsererror". When an HTTP error occurs, errorThrown receives the textual portion of the HTTP status, such as "Not Found" or "Internal Server Error." As of jQuery 1.5, the error setting can accept an array of functions. Each function will be called in turn. Note: This handler is not called for cross-domain script and cross-domain JSONP requests. This is an Ajax Event.
|
||||
*/
|
||||
error? (jqXHR: JQueryXHR, textStatus: string, errorThrown: string): any;
|
||||
error?(jqXHR: JQueryXHR, textStatus: string, errorThrown: string): any;
|
||||
/**
|
||||
* Whether to trigger global Ajax event handlers for this request. The default is true. Set to false to prevent the global handlers like ajaxStart or ajaxStop from being triggered. This can be used to control various Ajax Events.
|
||||
*/
|
||||
|
@ -132,7 +132,7 @@ interface JQueryAjaxSettings {
|
|||
/**
|
||||
* A function to be called if the request succeeds. The function gets passed three arguments: The data returned from the server, formatted according to the dataType parameter; a string describing the status; and the jqXHR (in jQuery 1.4.x, XMLHttpRequest) object. As of jQuery 1.5, the success setting can accept an array of functions. Each function will be called in turn. This is an Ajax Event.
|
||||
*/
|
||||
success? (data: any, textStatus: string, jqXHR: JQueryXHR): any;
|
||||
success?(data: any, textStatus: string, jqXHR: JQueryXHR): any;
|
||||
/**
|
||||
* Set a timeout (in milliseconds) for the request. This will override any global timeout set with $.ajaxSetup(). The timeout period starts at the point the $.ajax call is made; if several other requests are in progress and the browser has no connections available, it is possible for a request to time out before it can be sent. In jQuery 1.4.x and below, the XMLHttpRequest object will be in an invalid state if the request times out; accessing any object members may throw an exception. In Firefox 3.0+ only, script and JSONP requests cannot be cancelled by a timeout; the script will run even if it arrives after the timeout period.
|
||||
*/
|
||||
|
@ -284,7 +284,7 @@ interface JQueryGenericPromise<T> {
|
|||
* @param doneFilter A function that is called when the Deferred is resolved.
|
||||
* @param failFilter An optional function that is called when the Deferred is rejected.
|
||||
*/
|
||||
then<U>(doneFilter: (value?: T, ...values: any[]) => U|JQueryPromise<U>, failFilter?: (...reasons: any[]) => any, progressFilter?: (...progression: any[]) => any): JQueryPromise<U>;
|
||||
then<U>(doneFilter: (value?: T, ...values: any[]) => U | JQueryPromise<U>, failFilter?: (...reasons: any[]) => any, progressFilter?: (...progression: any[]) => any): JQueryPromise<U>;
|
||||
|
||||
/**
|
||||
* Add handlers to be called when the Deferred object is resolved, rejected, or still in progress.
|
||||
|
@ -303,7 +303,7 @@ interface JQueryPromiseCallback<T> {
|
|||
}
|
||||
|
||||
interface JQueryPromiseOperator<T, U> {
|
||||
(callback1: JQueryPromiseCallback<T>|JQueryPromiseCallback<T>[], ...callbacksN: Array<JQueryPromiseCallback<any>|JQueryPromiseCallback<any>[]>): JQueryPromise<U>;
|
||||
(callback1: JQueryPromiseCallback<T> | JQueryPromiseCallback<T>[], ...callbacksN: Array<JQueryPromiseCallback<any> | JQueryPromiseCallback<any>[]>): JQueryPromise<U>;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -320,27 +320,27 @@ interface JQueryPromise<T> extends JQueryGenericPromise<T> {
|
|||
* @param alwaysCallbacks1 A function, or array of functions, that is called when the Deferred is resolved or rejected.
|
||||
* @param alwaysCallbacks2 Optional additional functions, or arrays of functions, that are called when the Deferred is resolved or rejected.
|
||||
*/
|
||||
always(alwaysCallback1?: JQueryPromiseCallback<any>|JQueryPromiseCallback<any>[], ...alwaysCallbacksN: Array<JQueryPromiseCallback<any>|JQueryPromiseCallback<any>[]>): JQueryPromise<T>;
|
||||
always(alwaysCallback1?: JQueryPromiseCallback<any> | JQueryPromiseCallback<any>[], ...alwaysCallbacksN: Array<JQueryPromiseCallback<any> | JQueryPromiseCallback<any>[]>): JQueryPromise<T>;
|
||||
/**
|
||||
* Add handlers to be called when the Deferred object is resolved.
|
||||
*
|
||||
* @param doneCallbacks1 A function, or array of functions, that are called when the Deferred is resolved.
|
||||
* @param doneCallbacks2 Optional additional functions, or arrays of functions, that are called when the Deferred is resolved.
|
||||
*/
|
||||
done(doneCallback1?: JQueryPromiseCallback<T>|JQueryPromiseCallback<T>[], ...doneCallbackN: Array<JQueryPromiseCallback<T>|JQueryPromiseCallback<T>[]>): JQueryPromise<T>;
|
||||
done(doneCallback1?: JQueryPromiseCallback<T> | JQueryPromiseCallback<T>[], ...doneCallbackN: Array<JQueryPromiseCallback<T> | JQueryPromiseCallback<T>[]>): JQueryPromise<T>;
|
||||
/**
|
||||
* Add handlers to be called when the Deferred object is rejected.
|
||||
*
|
||||
* @param failCallbacks1 A function, or array of functions, that are called when the Deferred is rejected.
|
||||
* @param failCallbacks2 Optional additional functions, or arrays of functions, that are called when the Deferred is rejected.
|
||||
*/
|
||||
fail(failCallback1?: JQueryPromiseCallback<any>|JQueryPromiseCallback<any>[], ...failCallbacksN: Array<JQueryPromiseCallback<any>|JQueryPromiseCallback<any>[]>): JQueryPromise<T>;
|
||||
fail(failCallback1?: JQueryPromiseCallback<any> | JQueryPromiseCallback<any>[], ...failCallbacksN: Array<JQueryPromiseCallback<any> | JQueryPromiseCallback<any>[]>): JQueryPromise<T>;
|
||||
/**
|
||||
* Add handlers to be called when the Deferred object generates progress notifications.
|
||||
*
|
||||
* @param progressCallbacks A function, or array of functions, to be called when the Deferred generates progress notifications.
|
||||
*/
|
||||
progress(progressCallback1?: JQueryPromiseCallback<any>|JQueryPromiseCallback<any>[], ...progressCallbackN: Array<JQueryPromiseCallback<any>|JQueryPromiseCallback<any>[]>): JQueryPromise<T>;
|
||||
progress(progressCallback1?: JQueryPromiseCallback<any> | JQueryPromiseCallback<any>[], ...progressCallbackN: Array<JQueryPromiseCallback<any> | JQueryPromiseCallback<any>[]>): JQueryPromise<T>;
|
||||
|
||||
// Deprecated - given no typings
|
||||
pipe(doneFilter?: (x: any) => any, failFilter?: (x: any) => any, progressFilter?: (x: any) => any): JQueryPromise<any>;
|
||||
|
@ -367,27 +367,27 @@ interface JQueryDeferred<T> extends JQueryGenericPromise<T> {
|
|||
* @param alwaysCallbacks1 A function, or array of functions, that is called when the Deferred is resolved or rejected.
|
||||
* @param alwaysCallbacks2 Optional additional functions, or arrays of functions, that are called when the Deferred is resolved or rejected.
|
||||
*/
|
||||
always(alwaysCallback1?: JQueryPromiseCallback<any>|JQueryPromiseCallback<any>[], ...alwaysCallbacksN: Array<JQueryPromiseCallback<any>|JQueryPromiseCallback<any>[]>): JQueryDeferred<T>;
|
||||
always(alwaysCallback1?: JQueryPromiseCallback<any> | JQueryPromiseCallback<any>[], ...alwaysCallbacksN: Array<JQueryPromiseCallback<any> | JQueryPromiseCallback<any>[]>): JQueryDeferred<T>;
|
||||
/**
|
||||
* Add handlers to be called when the Deferred object is resolved.
|
||||
*
|
||||
* @param doneCallbacks1 A function, or array of functions, that are called when the Deferred is resolved.
|
||||
* @param doneCallbacks2 Optional additional functions, or arrays of functions, that are called when the Deferred is resolved.
|
||||
*/
|
||||
done(doneCallback1?: JQueryPromiseCallback<T>|JQueryPromiseCallback<T>[], ...doneCallbackN: Array<JQueryPromiseCallback<T>|JQueryPromiseCallback<T>[]>): JQueryDeferred<T>;
|
||||
done(doneCallback1?: JQueryPromiseCallback<T> | JQueryPromiseCallback<T>[], ...doneCallbackN: Array<JQueryPromiseCallback<T> | JQueryPromiseCallback<T>[]>): JQueryDeferred<T>;
|
||||
/**
|
||||
* Add handlers to be called when the Deferred object is rejected.
|
||||
*
|
||||
* @param failCallbacks1 A function, or array of functions, that are called when the Deferred is rejected.
|
||||
* @param failCallbacks2 Optional additional functions, or arrays of functions, that are called when the Deferred is rejected.
|
||||
*/
|
||||
fail(failCallback1?: JQueryPromiseCallback<any>|JQueryPromiseCallback<any>[], ...failCallbacksN: Array<JQueryPromiseCallback<any>|JQueryPromiseCallback<any>[]>): JQueryDeferred<T>;
|
||||
fail(failCallback1?: JQueryPromiseCallback<any> | JQueryPromiseCallback<any>[], ...failCallbacksN: Array<JQueryPromiseCallback<any> | JQueryPromiseCallback<any>[]>): JQueryDeferred<T>;
|
||||
/**
|
||||
* Add handlers to be called when the Deferred object generates progress notifications.
|
||||
*
|
||||
* @param progressCallbacks A function, or array of functions, to be called when the Deferred generates progress notifications.
|
||||
*/
|
||||
progress(progressCallback1?: JQueryPromiseCallback<any>|JQueryPromiseCallback<any>[], ...progressCallbackN: Array<JQueryPromiseCallback<any>|JQueryPromiseCallback<any>[]>): JQueryDeferred<T>;
|
||||
progress(progressCallback1?: JQueryPromiseCallback<any> | JQueryPromiseCallback<any>[], ...progressCallbackN: Array<JQueryPromiseCallback<any> | JQueryPromiseCallback<any>[]>): JQueryDeferred<T>;
|
||||
|
||||
/**
|
||||
* Call the progressCallbacks on a Deferred object with the given args.
|
||||
|
@ -495,7 +495,7 @@ interface JQueryKeyEventObject extends JQueryInputEventObject {
|
|||
keyCode: number;
|
||||
}
|
||||
|
||||
interface JQueryEventObject extends BaseJQueryEventObject, JQueryInputEventObject, JQueryMouseEventObject, JQueryKeyEventObject{
|
||||
interface JQueryEventObject extends BaseJQueryEventObject, JQueryInputEventObject, JQueryMouseEventObject, JQueryKeyEventObject {
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -518,7 +518,7 @@ interface JQuerySupport {
|
|||
opacity?: boolean;
|
||||
optDisabled?: boolean;
|
||||
optSelected?: boolean;
|
||||
scriptEval? (): boolean;
|
||||
scriptEval?(): boolean;
|
||||
style?: boolean;
|
||||
submitBubbles?: boolean;
|
||||
tbody?: boolean;
|
||||
|
@ -549,7 +549,7 @@ interface JQueryParam {
|
|||
*/
|
||||
interface JQueryEventConstructor {
|
||||
(name: string, eventProperties?: any): JQueryEventObject;
|
||||
new (name: string, eventProperties?: any): JQueryEventObject;
|
||||
new(name: string, eventProperties?: any): JQueryEventObject;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -616,11 +616,11 @@ interface JQueryAnimationOptions {
|
|||
}
|
||||
|
||||
interface JQueryEasingFunction {
|
||||
( percent: number ): number;
|
||||
(percent: number): number;
|
||||
}
|
||||
|
||||
interface JQueryEasingFunctions {
|
||||
[ name: string ]: JQueryEasingFunction;
|
||||
[name: string]: JQueryEasingFunction;
|
||||
linear: JQueryEasingFunction;
|
||||
swing: JQueryEasingFunction;
|
||||
}
|
||||
|
@ -660,11 +660,11 @@ interface JQueryStatic {
|
|||
|
||||
ajaxSettings: JQueryAjaxSettings;
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
ajaxSetup(options: JQueryAjaxSettings): void;
|
||||
|
||||
/**
|
||||
|
@ -683,13 +683,13 @@ interface JQueryStatic {
|
|||
* @param success A callback function that is executed if the request succeeds.
|
||||
* @param dataType The type of data expected from the server. Default: Intelligent Guess (xml, json, script, or html).
|
||||
*/
|
||||
get(url: string, data?: Object|string, success?: (data: any, textStatus: string, jqXHR: JQueryXHR) => any, dataType?: string): JQueryXHR;
|
||||
get(url: string, data?: Object | string, success?: (data: any, textStatus: string, jqXHR: JQueryXHR) => any, dataType?: string): JQueryXHR;
|
||||
/**
|
||||
* Load data from the server using a HTTP GET request.
|
||||
*
|
||||
* @param settings The JQueryAjaxSettings to be used for the request
|
||||
*/
|
||||
get(settings : JQueryAjaxSettings): JQueryXHR;
|
||||
get(settings: JQueryAjaxSettings): JQueryXHR;
|
||||
/**
|
||||
* Load JSON-encoded data from the server using a GET HTTP request.
|
||||
*
|
||||
|
@ -704,7 +704,7 @@ interface JQueryStatic {
|
|||
* @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.
|
||||
*/
|
||||
getJSON(url: string, data?: Object|string, success?: (data: any, textStatus: string, jqXHR: JQueryXHR) => any): JQueryXHR;
|
||||
getJSON(url: string, data?: Object | string, success?: (data: any, textStatus: string, jqXHR: JQueryXHR) => any): JQueryXHR;
|
||||
/**
|
||||
* Load a JavaScript file from the server using a GET HTTP request, then execute it.
|
||||
*
|
||||
|
@ -734,13 +734,13 @@ interface JQueryStatic {
|
|||
* @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).
|
||||
*/
|
||||
post(url: string, data?: Object|string, success?: (data: any, textStatus: string, jqXHR: JQueryXHR) => any, dataType?: string): JQueryXHR;
|
||||
post(url: string, data?: Object | string, success?: (data: any, textStatus: string, jqXHR: JQueryXHR) => any, dataType?: string): JQueryXHR;
|
||||
/**
|
||||
* Load data from the server using a HTTP POST request.
|
||||
*
|
||||
* @param settings The JQueryAjaxSettings to be used for the request
|
||||
*/
|
||||
post(settings : JQueryAjaxSettings): JQueryXHR;
|
||||
post(settings: JQueryAjaxSettings): JQueryXHR;
|
||||
/**
|
||||
* A multi-purpose callbacks list object that provides a powerful way to manage callback lists.
|
||||
*
|
||||
|
@ -761,7 +761,7 @@ interface JQueryStatic {
|
|||
* @param selector A string containing a selector expression
|
||||
* @param context A DOM Element, Document, or jQuery to use as context
|
||||
*/
|
||||
(selector: string, context?: Element|JQuery): JQuery;
|
||||
(selector: string, context?: Element | JQuery): JQuery;
|
||||
|
||||
/**
|
||||
* Accepts a string containing a CSS selector which is then used to match a set of elements.
|
||||
|
@ -831,7 +831,7 @@ interface JQueryStatic {
|
|||
*
|
||||
* @param deferreds One or more Deferred objects, or plain JavaScript objects.
|
||||
*/
|
||||
when<T>(...deferreds: Array<T|JQueryPromise<T>/* as JQueryDeferred<T> */>): JQueryPromise<T>;
|
||||
when<T>(...deferreds: Array<T | JQueryPromise<T>/* as JQueryDeferred<T> */>): JQueryPromise<T>;
|
||||
|
||||
/**
|
||||
* Hook directly into jQuery to override how particular CSS properties are retrieved or set, normalize CSS property naming, or create custom properties.
|
||||
|
@ -987,7 +987,7 @@ interface JQueryStatic {
|
|||
each<T>(
|
||||
collection: T[],
|
||||
callback: (indexInArray: number, valueOfElement: T) => any
|
||||
): any;
|
||||
): any;
|
||||
|
||||
/**
|
||||
* 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.
|
||||
|
@ -998,7 +998,7 @@ interface JQueryStatic {
|
|||
each(
|
||||
collection: any,
|
||||
callback: (indexInArray: any, valueOfElement: any) => any
|
||||
): any;
|
||||
): any;
|
||||
|
||||
/**
|
||||
* Merge the contents of two or more objects together into the first object.
|
||||
|
@ -1228,7 +1228,7 @@ interface JQuery {
|
|||
* @param data A plain object or string that is sent to the server with the request.
|
||||
* @param complete A callback function that is executed when the request completes.
|
||||
*/
|
||||
load(url: string, data?: string|Object, complete?: (responseText: string, textStatus: string, XMLHttpRequest: XMLHttpRequest) => any): JQuery;
|
||||
load(url: string, data?: string | Object, complete?: (responseText: string, textStatus: string, XMLHttpRequest: XMLHttpRequest) => any): JQuery;
|
||||
|
||||
/**
|
||||
* Encode a set of form elements as a string for submission.
|
||||
|
@ -1269,14 +1269,14 @@ interface JQuery {
|
|||
* @param attributeName The name of the attribute to set.
|
||||
* @param value A value to set for the attribute.
|
||||
*/
|
||||
attr(attributeName: string, value: string|number): JQuery;
|
||||
attr(attributeName: string, value: string | number): JQuery;
|
||||
/**
|
||||
* Set one or more attributes for the set of matched elements.
|
||||
*
|
||||
* @param attributeName The name of the attribute to set.
|
||||
* @param func A function returning the value to set. this is the current element. Receives the index position of the element in the set and the old attribute value as arguments.
|
||||
*/
|
||||
attr(attributeName: string, func: (index: number, attr: string) => string|number): JQuery;
|
||||
attr(attributeName: string, func: (index: number, attr: string) => string | number): JQuery;
|
||||
/**
|
||||
* Set one or more attributes for the set of matched elements.
|
||||
*
|
||||
|
@ -1325,7 +1325,7 @@ interface JQuery {
|
|||
* @param propertyName The name of the property to set.
|
||||
* @param value A value to set for the property.
|
||||
*/
|
||||
prop(propertyName: string, value: string|number|boolean): JQuery;
|
||||
prop(propertyName: string, value: string | number | boolean): JQuery;
|
||||
/**
|
||||
* Set one or more properties for the set of matched elements.
|
||||
*
|
||||
|
@ -1397,7 +1397,7 @@ interface JQuery {
|
|||
*
|
||||
* @param value A string of text, an array of strings or number corresponding to the value of each matched element to set as selected/checked.
|
||||
*/
|
||||
val(value: string|string[]|number): JQuery;
|
||||
val(value: string | string[] | number): JQuery;
|
||||
/**
|
||||
* Set the value of each element in the set of matched elements.
|
||||
*
|
||||
|
@ -1418,14 +1418,14 @@ interface JQuery {
|
|||
* @param propertyName A CSS property name.
|
||||
* @param value A value to set for the property.
|
||||
*/
|
||||
css(propertyName: string, value: string|number): JQuery;
|
||||
css(propertyName: string, value: string | number): JQuery;
|
||||
/**
|
||||
* Set one or more CSS properties for the set of matched elements.
|
||||
*
|
||||
* @param propertyName A CSS property name.
|
||||
* @param value A function returning the value to set. this is the current element. Receives the index position of the element in the set and the old value as arguments.
|
||||
*/
|
||||
css(propertyName: string, value: (index: number, value: string) => string|number): JQuery;
|
||||
css(propertyName: string, value: (index: number, value: string) => string | number): JQuery;
|
||||
/**
|
||||
* Set one or more CSS properties for the set of matched elements.
|
||||
*
|
||||
|
@ -1442,13 +1442,13 @@ interface JQuery {
|
|||
*
|
||||
* @param value An integer representing the number of pixels, or an integer with an optional unit of measure appended (as a string).
|
||||
*/
|
||||
height(value: number|string): JQuery;
|
||||
height(value: number | string): JQuery;
|
||||
/**
|
||||
* Set the CSS height of every matched element.
|
||||
*
|
||||
* @param func A function returning the height to set. Receives the index position of the element in the set and the old height as arguments. Within the function, this refers to the current element in the set.
|
||||
*/
|
||||
height(func: (index: number, height: number) => number|string): JQuery;
|
||||
height(func: (index: number, height: number) => number | string): JQuery;
|
||||
|
||||
/**
|
||||
* Get the current computed height for the first element in the set of matched elements, including padding but not border.
|
||||
|
@ -1460,7 +1460,7 @@ interface JQuery {
|
|||
*
|
||||
* @param value An integer representing the number of pixels, or an integer along with an optional unit of measure appended (as a string).
|
||||
*/
|
||||
innerHeight(height: number|string): JQuery;
|
||||
innerHeight(height: number | string): JQuery;
|
||||
|
||||
/**
|
||||
* Get the current computed width for the first element in the set of matched elements, including padding but not border.
|
||||
|
@ -1472,7 +1472,7 @@ interface JQuery {
|
|||
*
|
||||
* @param value An integer representing the number of pixels, or an integer along with an optional unit of measure appended (as a string).
|
||||
*/
|
||||
innerWidth(width: number|string): JQuery;
|
||||
innerWidth(width: number | string): JQuery;
|
||||
|
||||
/**
|
||||
* Get the current coordinates of the first element in the set of matched elements, relative to the document.
|
||||
|
@ -1503,7 +1503,7 @@ interface JQuery {
|
|||
*
|
||||
* @param value An integer representing the number of pixels, or an integer along with an optional unit of measure appended (as a string).
|
||||
*/
|
||||
outerHeight(height: number|string): JQuery;
|
||||
outerHeight(height: number | string): JQuery;
|
||||
|
||||
/**
|
||||
* Get the current computed width for the first element in the set of matched elements, including padding and border.
|
||||
|
@ -1517,7 +1517,7 @@ interface JQuery {
|
|||
*
|
||||
* @param value An integer representing the number of pixels, or an integer along with an optional unit of measure appended (as a string).
|
||||
*/
|
||||
outerWidth(width: number|string): JQuery;
|
||||
outerWidth(width: number | string): JQuery;
|
||||
|
||||
/**
|
||||
* Get the current coordinates of the first element in the set of matched elements, relative to the offset parent.
|
||||
|
@ -1555,13 +1555,13 @@ interface JQuery {
|
|||
*
|
||||
* @param value An integer representing the number of pixels, or an integer along with an optional unit of measure appended (as a string).
|
||||
*/
|
||||
width(value: number|string): JQuery;
|
||||
width(value: number | string): JQuery;
|
||||
/**
|
||||
* Set the CSS width of each element in the set of matched elements.
|
||||
*
|
||||
* @param func A function returning the width to set. Receives the index position of the element in the set and the old width as arguments. Within the function, this refers to the current element in the set.
|
||||
*/
|
||||
width(func: (index: number, width: number) => number|string): JQuery;
|
||||
width(func: (index: number, width: number) => number | string): JQuery;
|
||||
|
||||
/**
|
||||
* Remove from the queue all items that have not yet been run.
|
||||
|
@ -1633,7 +1633,7 @@ interface JQuery {
|
|||
* @param duration A string or number determining how long the animation will run.
|
||||
* @param complete A function to call once the animation is complete.
|
||||
*/
|
||||
animate(properties: Object, duration?: string|number, complete?: Function): JQuery;
|
||||
animate(properties: Object, duration?: string | number, complete?: Function): JQuery;
|
||||
/**
|
||||
* Perform a custom animation of a set of CSS properties.
|
||||
*
|
||||
|
@ -1642,7 +1642,7 @@ interface JQuery {
|
|||
* @param easing A string indicating which easing function to use for the transition. (default: swing)
|
||||
* @param complete A function to call once the animation is complete.
|
||||
*/
|
||||
animate(properties: Object, duration?: string|number, easing?: string, complete?: Function): JQuery;
|
||||
animate(properties: Object, duration?: string | number, easing?: string, complete?: Function): JQuery;
|
||||
/**
|
||||
* Perform a custom animation of a set of CSS properties.
|
||||
*
|
||||
|
@ -1665,7 +1665,7 @@ interface JQuery {
|
|||
* @param duration A string or number determining how long the animation will run.
|
||||
* @param complete A function to call once the animation is complete.
|
||||
*/
|
||||
fadeIn(duration?: number|string, complete?: Function): JQuery;
|
||||
fadeIn(duration?: number | string, complete?: Function): JQuery;
|
||||
/**
|
||||
* Display the matched elements by fading them to opaque.
|
||||
*
|
||||
|
@ -1673,7 +1673,7 @@ interface JQuery {
|
|||
* @param easing A string indicating which easing function to use for the transition.
|
||||
* @param complete A function to call once the animation is complete.
|
||||
*/
|
||||
fadeIn(duration?: number|string, easing?: string, complete?: Function): JQuery;
|
||||
fadeIn(duration?: number | string, easing?: string, complete?: Function): JQuery;
|
||||
/**
|
||||
* Display the matched elements by fading them to opaque.
|
||||
*
|
||||
|
@ -1687,7 +1687,7 @@ interface JQuery {
|
|||
* @param duration A string or number determining how long the animation will run.
|
||||
* @param complete A function to call once the animation is complete.
|
||||
*/
|
||||
fadeOut(duration?: number|string, complete?: Function): JQuery;
|
||||
fadeOut(duration?: number | string, complete?: Function): JQuery;
|
||||
/**
|
||||
* Hide the matched elements by fading them to transparent.
|
||||
*
|
||||
|
@ -1695,7 +1695,7 @@ interface JQuery {
|
|||
* @param easing A string indicating which easing function to use for the transition.
|
||||
* @param complete A function to call once the animation is complete.
|
||||
*/
|
||||
fadeOut(duration?: number|string, easing?: string, complete?: Function): JQuery;
|
||||
fadeOut(duration?: number | string, easing?: string, complete?: Function): JQuery;
|
||||
/**
|
||||
* Hide the matched elements by fading them to transparent.
|
||||
*
|
||||
|
@ -1710,7 +1710,7 @@ interface JQuery {
|
|||
* @param opacity A number between 0 and 1 denoting the target opacity.
|
||||
* @param complete A function to call once the animation is complete.
|
||||
*/
|
||||
fadeTo(duration: string|number, opacity: number, complete?: Function): JQuery;
|
||||
fadeTo(duration: string | number, opacity: number, complete?: Function): JQuery;
|
||||
/**
|
||||
* Adjust the opacity of the matched elements.
|
||||
*
|
||||
|
@ -1719,7 +1719,7 @@ interface JQuery {
|
|||
* @param easing A string indicating which easing function to use for the transition.
|
||||
* @param complete A function to call once the animation is complete.
|
||||
*/
|
||||
fadeTo(duration: string|number, opacity: number, easing?: string, complete?: Function): JQuery;
|
||||
fadeTo(duration: string | number, opacity: number, easing?: string, complete?: Function): JQuery;
|
||||
|
||||
/**
|
||||
* Display or hide the matched elements by animating their opacity.
|
||||
|
@ -1727,7 +1727,7 @@ interface JQuery {
|
|||
* @param duration A string or number determining how long the animation will run.
|
||||
* @param complete A function to call once the animation is complete.
|
||||
*/
|
||||
fadeToggle(duration?: number|string, complete?: Function): JQuery;
|
||||
fadeToggle(duration?: number | string, complete?: Function): JQuery;
|
||||
/**
|
||||
* Display or hide the matched elements by animating their opacity.
|
||||
*
|
||||
|
@ -1735,7 +1735,7 @@ interface JQuery {
|
|||
* @param easing A string indicating which easing function to use for the transition.
|
||||
* @param complete A function to call once the animation is complete.
|
||||
*/
|
||||
fadeToggle(duration?: number|string, easing?: string, complete?: Function): JQuery;
|
||||
fadeToggle(duration?: number | string, easing?: string, complete?: Function): JQuery;
|
||||
/**
|
||||
* Display or hide the matched elements by animating their opacity.
|
||||
*
|
||||
|
@ -1756,7 +1756,7 @@ interface JQuery {
|
|||
* @param duration A string or number determining how long the animation will run.
|
||||
* @param complete A function to call once the animation is complete.
|
||||
*/
|
||||
hide(duration?: number|string, complete?: Function): JQuery;
|
||||
hide(duration?: number | string, complete?: Function): JQuery;
|
||||
/**
|
||||
* Hide the matched elements.
|
||||
*
|
||||
|
@ -1764,7 +1764,7 @@ interface JQuery {
|
|||
* @param easing A string indicating which easing function to use for the transition.
|
||||
* @param complete A function to call once the animation is complete.
|
||||
*/
|
||||
hide(duration?: number|string, easing?: string, complete?: Function): JQuery;
|
||||
hide(duration?: number | string, easing?: string, complete?: Function): JQuery;
|
||||
/**
|
||||
* Hide the matched elements.
|
||||
*
|
||||
|
@ -1778,7 +1778,7 @@ interface JQuery {
|
|||
* @param duration A string or number determining how long the animation will run.
|
||||
* @param complete A function to call once the animation is complete.
|
||||
*/
|
||||
show(duration?: number|string, complete?: Function): JQuery;
|
||||
show(duration?: number | string, complete?: Function): JQuery;
|
||||
/**
|
||||
* Display the matched elements.
|
||||
*
|
||||
|
@ -1786,7 +1786,7 @@ interface JQuery {
|
|||
* @param easing A string indicating which easing function to use for the transition.
|
||||
* @param complete A function to call once the animation is complete.
|
||||
*/
|
||||
show(duration?: number|string, easing?: string, complete?: Function): JQuery;
|
||||
show(duration?: number | string, easing?: string, complete?: Function): JQuery;
|
||||
/**
|
||||
* Display the matched elements.
|
||||
*
|
||||
|
@ -1800,7 +1800,7 @@ interface JQuery {
|
|||
* @param duration A string or number determining how long the animation will run.
|
||||
* @param complete A function to call once the animation is complete.
|
||||
*/
|
||||
slideDown(duration?: number|string, complete?: Function): JQuery;
|
||||
slideDown(duration?: number | string, complete?: Function): JQuery;
|
||||
/**
|
||||
* Display the matched elements with a sliding motion.
|
||||
*
|
||||
|
@ -1808,7 +1808,7 @@ interface JQuery {
|
|||
* @param easing A string indicating which easing function to use for the transition.
|
||||
* @param complete A function to call once the animation is complete.
|
||||
*/
|
||||
slideDown(duration?: number|string, easing?: string, complete?: Function): JQuery;
|
||||
slideDown(duration?: number | string, easing?: string, complete?: Function): JQuery;
|
||||
/**
|
||||
* Display the matched elements with a sliding motion.
|
||||
*
|
||||
|
@ -1822,7 +1822,7 @@ interface JQuery {
|
|||
* @param duration A string or number determining how long the animation will run.
|
||||
* @param complete A function to call once the animation is complete.
|
||||
*/
|
||||
slideToggle(duration?: number|string, complete?: Function): JQuery;
|
||||
slideToggle(duration?: number | string, complete?: Function): JQuery;
|
||||
/**
|
||||
* Display or hide the matched elements with a sliding motion.
|
||||
*
|
||||
|
@ -1830,7 +1830,7 @@ interface JQuery {
|
|||
* @param easing A string indicating which easing function to use for the transition.
|
||||
* @param complete A function to call once the animation is complete.
|
||||
*/
|
||||
slideToggle(duration?: number|string, easing?: string, complete?: Function): JQuery;
|
||||
slideToggle(duration?: number | string, easing?: string, complete?: Function): JQuery;
|
||||
/**
|
||||
* Display or hide the matched elements with a sliding motion.
|
||||
*
|
||||
|
@ -1844,7 +1844,7 @@ interface JQuery {
|
|||
* @param duration A string or number determining how long the animation will run.
|
||||
* @param complete A function to call once the animation is complete.
|
||||
*/
|
||||
slideUp(duration?: number|string, complete?: Function): JQuery;
|
||||
slideUp(duration?: number | string, complete?: Function): JQuery;
|
||||
/**
|
||||
* Hide the matched elements with a sliding motion.
|
||||
*
|
||||
|
@ -1852,7 +1852,7 @@ interface JQuery {
|
|||
* @param easing A string indicating which easing function to use for the transition.
|
||||
* @param complete A function to call once the animation is complete.
|
||||
*/
|
||||
slideUp(duration?: number|string, easing?: string, complete?: Function): JQuery;
|
||||
slideUp(duration?: number | string, easing?: string, complete?: Function): JQuery;
|
||||
/**
|
||||
* Hide the matched elements with a sliding motion.
|
||||
*
|
||||
|
@ -1882,7 +1882,7 @@ interface JQuery {
|
|||
* @param duration A string or number determining how long the animation will run.
|
||||
* @param complete A function to call once the animation is complete.
|
||||
*/
|
||||
toggle(duration?: number|string, complete?: Function): JQuery;
|
||||
toggle(duration?: number | string, complete?: Function): JQuery;
|
||||
/**
|
||||
* Display or hide the matched elements.
|
||||
*
|
||||
|
@ -1890,7 +1890,7 @@ interface JQuery {
|
|||
* @param easing A string indicating which easing function to use for the transition.
|
||||
* @param complete A function to call once the animation is complete.
|
||||
*/
|
||||
toggle(duration?: number|string, easing?: string, complete?: Function): JQuery;
|
||||
toggle(duration?: number | string, easing?: string, complete?: Function): JQuery;
|
||||
/**
|
||||
* Display or hide the matched elements.
|
||||
*
|
||||
|
@ -2344,7 +2344,7 @@ interface JQuery {
|
|||
* @param data Data to be passed to the handler in event.data when an event is triggered.
|
||||
* @param handler A function to execute when the event is triggered. The value false is also allowed as a shorthand for a function that simply does return false.
|
||||
*/
|
||||
on(events: string, data : any, handler: (eventObject: JQueryEventObject, ...args: any[]) => any): JQuery;
|
||||
on(events: string, data: any, handler: (eventObject: JQueryEventObject, ...args: any[]) => any): JQuery;
|
||||
/**
|
||||
* Attach an event handler function for one or more events to the selected elements.
|
||||
*
|
||||
|
@ -2515,14 +2515,14 @@ interface JQuery {
|
|||
* @param eventType A string containing a JavaScript event type, such as click or submit.
|
||||
* @param extraParameters Additional parameters to pass along to the event handler.
|
||||
*/
|
||||
trigger(eventType: string, extraParameters?: any[]|Object): JQuery;
|
||||
trigger(eventType: string, extraParameters?: any[] | Object): JQuery;
|
||||
/**
|
||||
* Execute all handlers and behaviors attached to the matched elements for the given event type.
|
||||
*
|
||||
* @param event A jQuery.Event object.
|
||||
* @param extraParameters Additional parameters to pass along to the event handler.
|
||||
*/
|
||||
trigger(event: JQueryEventObject, extraParameters?: any[]|Object): JQuery;
|
||||
trigger(event: JQueryEventObject, extraParameters?: any[] | Object): JQuery;
|
||||
|
||||
/**
|
||||
* Execute all handlers attached to an element for an event.
|
||||
|
@ -2643,13 +2643,13 @@ interface JQuery {
|
|||
* param content1 HTML string, DOM element, DocumentFragment, array of elements, or jQuery object to insert after each element in the set of matched elements.
|
||||
* param content2 One or more additional DOM elements, arrays of elements, HTML strings, or jQuery objects to insert after each element in the set of matched elements.
|
||||
*/
|
||||
after(content1: JQuery|any[]|Element|DocumentFragment|Text|string, ...content2: any[]): JQuery;
|
||||
after(content1: JQuery | any[] | Element | DocumentFragment | Text | string, ...content2: any[]): JQuery;
|
||||
/**
|
||||
* Insert content, specified by the parameter, after each element in the set of matched elements.
|
||||
*
|
||||
* param func A function that returns an HTML string, DOM element(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.
|
||||
*/
|
||||
after(func: (index: number, html: string) => string|Element|JQuery): JQuery;
|
||||
after(func: (index: number, html: string) => string | Element | JQuery): JQuery;
|
||||
|
||||
/**
|
||||
* Insert content, specified by the parameter, to the end of each element in the set of matched elements.
|
||||
|
@ -2657,20 +2657,20 @@ interface JQuery {
|
|||
* param content1 DOM element, DocumentFragment, array of elements, HTML string, or jQuery object to insert at the end of each element in the set of matched elements.
|
||||
* param content2 One or more additional DOM elements, arrays of elements, HTML strings, or jQuery objects to insert at the end of each element in the set of matched elements.
|
||||
*/
|
||||
append(content1: JQuery|any[]|Element|DocumentFragment|Text|string, ...content2: any[]): JQuery;
|
||||
append(content1: JQuery | any[] | Element | DocumentFragment | Text | string, ...content2: any[]): JQuery;
|
||||
/**
|
||||
* Insert content, specified by the parameter, to the end of each element in the set of matched elements.
|
||||
*
|
||||
* param func A function that returns an HTML string, DOM element(s), or jQuery object to insert at the end of 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.
|
||||
*/
|
||||
append(func: (index: number, html: string) => string|Element|JQuery): JQuery;
|
||||
append(func: (index: number, html: string) => string | Element | JQuery): JQuery;
|
||||
|
||||
/**
|
||||
* Insert every element in the set of matched elements to the end of the target.
|
||||
*
|
||||
* @param target A selector, element, HTML string, array of elements, or jQuery object; the matched set of elements will be inserted at the end of the element(s) specified by this parameter.
|
||||
*/
|
||||
appendTo(target: JQuery|any[]|Element|string): JQuery;
|
||||
appendTo(target: JQuery | any[] | Element | string): JQuery;
|
||||
|
||||
/**
|
||||
* Insert content, specified by the parameter, before each element in the set of matched elements.
|
||||
|
@ -2678,13 +2678,13 @@ interface JQuery {
|
|||
* param content1 HTML string, DOM element, DocumentFragment, array of elements, or jQuery object to insert before each element in the set of matched elements.
|
||||
* param content2 One or more additional DOM elements, arrays of elements, HTML strings, or jQuery objects to insert before each element in the set of matched elements.
|
||||
*/
|
||||
before(content1: JQuery|any[]|Element|DocumentFragment|Text|string, ...content2: any[]): JQuery;
|
||||
before(content1: JQuery | any[] | Element | DocumentFragment | Text | string, ...content2: any[]): JQuery;
|
||||
/**
|
||||
* Insert content, specified by the parameter, before each element in the set of matched elements.
|
||||
*
|
||||
* param func A function that returns an HTML string, DOM element(s), or jQuery object to insert before 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.
|
||||
*/
|
||||
before(func: (index: number, html: string) => string|Element|JQuery): JQuery;
|
||||
before(func: (index: number, html: string) => string | Element | JQuery): JQuery;
|
||||
|
||||
/**
|
||||
* Create a deep copy of the set of matched elements.
|
||||
|
@ -2711,14 +2711,14 @@ interface JQuery {
|
|||
*
|
||||
* param target A selector, element, array of elements, HTML string, or jQuery object; the matched set of elements will be inserted after the element(s) specified by this parameter.
|
||||
*/
|
||||
insertAfter(target: JQuery|any[]|Element|Text|string): JQuery;
|
||||
insertAfter(target: JQuery | any[] | Element | Text | string): JQuery;
|
||||
|
||||
/**
|
||||
* Insert every element in the set of matched elements before the target.
|
||||
*
|
||||
* param target A selector, element, array of elements, HTML string, or jQuery object; the matched set of elements will be inserted before the element(s) specified by this parameter.
|
||||
*/
|
||||
insertBefore(target: JQuery|any[]|Element|Text|string): JQuery;
|
||||
insertBefore(target: JQuery | any[] | Element | Text | string): JQuery;
|
||||
|
||||
/**
|
||||
* Insert content, specified by the parameter, to the beginning of each element in the set of matched elements.
|
||||
|
@ -2726,20 +2726,20 @@ interface JQuery {
|
|||
* param content1 DOM element, DocumentFragment, array of elements, HTML string, or jQuery object to insert at the beginning of each element in the set of matched elements.
|
||||
* param content2 One or more additional DOM elements, arrays of elements, HTML strings, or jQuery objects to insert at the beginning of each element in the set of matched elements.
|
||||
*/
|
||||
prepend(content1: JQuery|any[]|Element|DocumentFragment|Text|string, ...content2: any[]): JQuery;
|
||||
prepend(content1: JQuery | any[] | Element | DocumentFragment | Text | string, ...content2: any[]): JQuery;
|
||||
/**
|
||||
* Insert content, specified by the parameter, to the beginning of each element in the set of matched elements.
|
||||
*
|
||||
* param func A function that returns an HTML string, DOM element(s), or jQuery object to insert at the beginning of 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.
|
||||
*/
|
||||
prepend(func: (index: number, html: string) => string|Element|JQuery): JQuery;
|
||||
prepend(func: (index: number, html: string) => string | Element | JQuery): JQuery;
|
||||
|
||||
/**
|
||||
* Insert every element in the set of matched elements to the beginning of the target.
|
||||
*
|
||||
* @param target A selector, element, HTML string, array of elements, or jQuery object; the matched set of elements will be inserted at the beginning of the element(s) specified by this parameter.
|
||||
*/
|
||||
prependTo(target: JQuery|any[]|Element|string): JQuery;
|
||||
prependTo(target: JQuery | any[] | Element | string): JQuery;
|
||||
|
||||
/**
|
||||
* Remove the set of matched elements from the DOM.
|
||||
|
@ -2753,20 +2753,20 @@ interface JQuery {
|
|||
*
|
||||
* @param target A selector string, jQuery object, DOM element, or array of elements indicating which element(s) to replace.
|
||||
*/
|
||||
replaceAll(target: JQuery|any[]|Element|string): JQuery;
|
||||
replaceAll(target: JQuery | any[] | Element | string): JQuery;
|
||||
|
||||
/**
|
||||
* Replace each element in the set of matched elements with the provided new content and return the set of elements that was removed.
|
||||
*
|
||||
* param newContent The content to insert. May be an HTML string, DOM element, array of DOM elements, or jQuery object.
|
||||
*/
|
||||
replaceWith(newContent: JQuery|any[]|Element|Text|string): JQuery;
|
||||
replaceWith(newContent: JQuery | any[] | Element | Text | string): JQuery;
|
||||
/**
|
||||
* Replace each element in the set of matched elements with the provided new content and return the set of elements that was removed.
|
||||
*
|
||||
* param func A function that returns content with which to replace the set of matched elements.
|
||||
*/
|
||||
replaceWith(func: () => Element|JQuery): JQuery;
|
||||
replaceWith(func: () => Element | JQuery): JQuery;
|
||||
|
||||
/**
|
||||
* Get the combined text contents of each element in the set of matched elements, including their descendants.
|
||||
|
@ -2777,7 +2777,7 @@ interface JQuery {
|
|||
*
|
||||
* @param text The text to set as the content of each matched element. When Number or Boolean is supplied, it will be converted to a String representation.
|
||||
*/
|
||||
text(text: string|number|boolean): JQuery;
|
||||
text(text: string | number | boolean): JQuery;
|
||||
/**
|
||||
* Set the content of each element in the set of matched elements to the specified text.
|
||||
*
|
||||
|
@ -2801,20 +2801,20 @@ interface JQuery {
|
|||
*
|
||||
* @param wrappingElement A selector, element, HTML string, or jQuery object specifying the structure to wrap around the matched elements.
|
||||
*/
|
||||
wrap(wrappingElement: JQuery|Element|string): JQuery;
|
||||
wrap(wrappingElement: JQuery | Element | string): JQuery;
|
||||
/**
|
||||
* Wrap an HTML structure around each element in the set of matched elements.
|
||||
*
|
||||
* @param func A callback function returning the HTML content or jQuery object to wrap around the 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.
|
||||
*/
|
||||
wrap(func: (index: number) => string|JQuery): JQuery;
|
||||
wrap(func: (index: number) => string | JQuery): JQuery;
|
||||
|
||||
/**
|
||||
* Wrap an HTML structure around all elements in the set of matched elements.
|
||||
*
|
||||
* @param wrappingElement A selector, element, HTML string, or jQuery object specifying the structure to wrap around the matched elements.
|
||||
*/
|
||||
wrapAll(wrappingElement: JQuery|Element|string): JQuery;
|
||||
wrapAll(wrappingElement: JQuery | Element | string): JQuery;
|
||||
wrapAll(func: (index: number) => string): JQuery;
|
||||
|
||||
/**
|
||||
|
@ -2822,7 +2822,7 @@ interface JQuery {
|
|||
*
|
||||
* @param wrappingElement An HTML snippet, selector expression, jQuery object, or DOM element specifying the structure to wrap around the content of the matched elements.
|
||||
*/
|
||||
wrapInner(wrappingElement: JQuery|Element|string): JQuery;
|
||||
wrapInner(wrappingElement: JQuery | Element | string): JQuery;
|
||||
/**
|
||||
* Wrap an HTML structure around the content of each element in the set of matched elements.
|
||||
*
|
||||
|
@ -2858,7 +2858,7 @@ interface JQuery {
|
|||
*
|
||||
* @param selector A selector representing a jQuery collection in which to look for an element.
|
||||
*/
|
||||
index(selector: string|JQuery|Element): number;
|
||||
index(selector: string | JQuery | Element): number;
|
||||
|
||||
/**
|
||||
* The number of elements in the jQuery object.
|
||||
|
@ -3109,7 +3109,7 @@ interface JQuery {
|
|||
*
|
||||
* @param elements One or more DOM elements to remove from the matched set.
|
||||
*/
|
||||
not(elements: Element|Element[]): JQuery;
|
||||
not(elements: Element | Element[]): JQuery;
|
||||
/**
|
||||
* Remove elements from the set of matched elements.
|
||||
*
|
||||
|
@ -3242,7 +3242,7 @@ interface JQuery {
|
|||
*/
|
||||
queue(queueName: string, callback: Function): JQuery;
|
||||
}
|
||||
declare module "jquery" {
|
||||
declare module 'jquery' {
|
||||
export = $;
|
||||
}
|
||||
declare const jQuery: JQueryStatic;
|
||||
|
|
Loading…
Reference in a new issue