@types/jquery 1.10.34 → 1.10.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {jquery v1 → jquery v1.10}/LICENSE +1 -1
- jquery v1.10/README.md +16 -0
- {jquery v1 → jquery v1.10}/index.d.ts +64 -61
- {jquery v1 → jquery v1.10}/package.json +11 -11
- jquery v1/README.md +0 -16
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c) Microsoft Corporation.
|
|
3
|
+
Copyright (c) Microsoft Corporation.
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
jquery v1.10/README.md
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Installation
|
|
2
|
+
> `npm install --save @types/jquery`
|
|
3
|
+
|
|
4
|
+
# Summary
|
|
5
|
+
This package contains type definitions for jQuery (http://jquery.com/).
|
|
6
|
+
|
|
7
|
+
# Details
|
|
8
|
+
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jquery/v1.
|
|
9
|
+
|
|
10
|
+
### Additional Details
|
|
11
|
+
* Last updated: Thu, 23 Dec 2021 23:34:55 GMT
|
|
12
|
+
* Dependencies: none
|
|
13
|
+
* Global values: `$`, `jQuery`
|
|
14
|
+
|
|
15
|
+
# Credits
|
|
16
|
+
These definitions were written by [Boris Yankov](https://github.com/borisyankov), [Christian Hoffmeister](https://github.com/choffmeister), [Steve Fenton](https://github.com/Steve-Fenton), [Diullei Gomes](https://github.com/Diullei), [Tass Iliopoulos](https://github.com/tasoili), [Jason Swearingen](https://github.com/jasons-novaleaf), [Sean Hill](https://github.com/seanski), [Guus Goossens](https://github.com/Guuz), [Kelly Summerlin](https://github.com/ksummerlin), [Basarat Ali Syed](https://github.com/basarat), [Nicholas Wolverson](https://github.com/nwolverson), [Derek Cicerone](https://github.com/derekcicerone), [Andrew Gaspar](https://github.com/AndrewGaspar), [Seikichi Kondo](https://github.com/seikichi), [Benjamin Jackman](https://github.com/benjaminjackman), [Josh Strobl](https://github.com/JoshStrobl), [John Reilly](https://github.com/johnnyreilly), [Dick van den Brink](https://github.com/DickvdBrink), [Thomas Schulz](https://github.com/King2500), and [Leonard Thieu](https://github.com/leonard-thieu).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Type definitions for jQuery 1.10
|
|
2
2
|
// Project: http://jquery.com/
|
|
3
|
-
// Definitions by: Boris Yankov <https://github.com/borisyankov
|
|
3
|
+
// Definitions by: Boris Yankov <https://github.com/borisyankov>
|
|
4
4
|
// Christian Hoffmeister <https://github.com/choffmeister>
|
|
5
5
|
// Steve Fenton <https://github.com/Steve-Fenton>
|
|
6
6
|
// Diullei Gomes <https://github.com/Diullei>
|
|
@@ -15,9 +15,8 @@
|
|
|
15
15
|
// Andrew Gaspar <https://github.com/AndrewGaspar>
|
|
16
16
|
// Seikichi Kondo <https://github.com/seikichi>
|
|
17
17
|
// Benjamin Jackman <https://github.com/benjaminjackman>
|
|
18
|
-
// Poul Sorensen <https://github.com/s093294>
|
|
19
18
|
// Josh Strobl <https://github.com/JoshStrobl>
|
|
20
|
-
// John Reilly <https://github.com/johnnyreilly
|
|
19
|
+
// John Reilly <https://github.com/johnnyreilly>
|
|
21
20
|
// Dick van den Brink <https://github.com/DickvdBrink>
|
|
22
21
|
// Thomas Schulz <https://github.com/King2500>
|
|
23
22
|
// Leonard Thieu <https://github.com/leonard-thieu>
|
|
@@ -51,7 +50,7 @@ interface JQueryAjaxSettings {
|
|
|
51
50
|
/**
|
|
52
51
|
* By default, all requests are sent asynchronously (i.e. this is set to true by default). If you need synchronous requests, set this option to false. Cross-domain requests and dataType: "jsonp" requests do not support synchronous operation. Note that synchronous requests may temporarily lock the browser, disabling any actions while the request is active. As of jQuery 1.8, the use of async: false with jqXHR ($.Deferred) is deprecated; you must use the success/error/complete callback options instead of the corresponding methods of the jqXHR object such as jqXHR.done() or the deprecated jqXHR.success().
|
|
53
52
|
*/
|
|
54
|
-
async?: boolean;
|
|
53
|
+
async?: boolean | undefined;
|
|
55
54
|
/**
|
|
56
55
|
* 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.
|
|
57
56
|
*/
|
|
@@ -59,7 +58,7 @@ interface JQueryAjaxSettings {
|
|
|
59
58
|
/**
|
|
60
59
|
* 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.
|
|
61
60
|
*/
|
|
62
|
-
cache?: boolean;
|
|
61
|
+
cache?: boolean | undefined;
|
|
63
62
|
/**
|
|
64
63
|
* 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.
|
|
65
64
|
*/
|
|
@@ -67,7 +66,7 @@ interface JQueryAjaxSettings {
|
|
|
67
66
|
/**
|
|
68
67
|
* An object of string/regular-expression pairs that determine how jQuery will parse the response, given its content type. (version added: 1.5)
|
|
69
68
|
*/
|
|
70
|
-
contents?: { [key: string]: any; };
|
|
69
|
+
contents?: { [key: string]: any; } | undefined;
|
|
71
70
|
//According to jQuery.ajax source code, ajax's option actually allows contentType to set to "false"
|
|
72
71
|
// https://github.com/DefinitelyTyped/DefinitelyTyped/issues/742
|
|
73
72
|
/**
|
|
@@ -81,11 +80,11 @@ interface JQueryAjaxSettings {
|
|
|
81
80
|
/**
|
|
82
81
|
* An object containing dataType-to-dataType converters. Each converter's value is a function that returns the transformed value of the response. (version added: 1.5)
|
|
83
82
|
*/
|
|
84
|
-
converters?: { [key: string]: any; };
|
|
83
|
+
converters?: { [key: string]: any; } | undefined;
|
|
85
84
|
/**
|
|
86
85
|
* If you wish to force a crossDomain request (such as JSONP) on the same domain, set the value of crossDomain to true. This allows, for example, server-side redirection to another domain. (version added: 1.5)
|
|
87
86
|
*/
|
|
88
|
-
crossDomain?: boolean;
|
|
87
|
+
crossDomain?: boolean | undefined;
|
|
89
88
|
/**
|
|
90
89
|
* Data to be sent to the server. It is converted to a query string, if not already a string. It's appended to the url for GET-requests. See processData option to prevent this automatic processing. Object must be key-value pairs. If value is an Array, jQuery serializes multiple values with same key based on the value of the traditional setting (described below).
|
|
91
90
|
*/
|
|
@@ -97,7 +96,7 @@ interface JQueryAjaxSettings {
|
|
|
97
96
|
/**
|
|
98
97
|
* 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).
|
|
99
98
|
*/
|
|
100
|
-
dataType?: string;
|
|
99
|
+
dataType?: string | undefined;
|
|
101
100
|
/**
|
|
102
101
|
* 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.
|
|
103
102
|
*/
|
|
@@ -105,19 +104,19 @@ interface JQueryAjaxSettings {
|
|
|
105
104
|
/**
|
|
106
105
|
* 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.
|
|
107
106
|
*/
|
|
108
|
-
global?: boolean;
|
|
107
|
+
global?: boolean | undefined;
|
|
109
108
|
/**
|
|
110
109
|
* An object of additional header key/value pairs to send along with requests using the XMLHttpRequest transport. The header X-Requested-With: XMLHttpRequest is always added, but its default XMLHttpRequest value can be changed here. Values in the headers setting can also be overwritten from within the beforeSend function. (version added: 1.5)
|
|
111
110
|
*/
|
|
112
|
-
headers?: { [key: string]: any; };
|
|
111
|
+
headers?: { [key: string]: any; } | undefined;
|
|
113
112
|
/**
|
|
114
113
|
* Allow the request to be successful only if the response has changed since the last request. This is done by checking the Last-Modified header. Default value is false, ignoring the header. In jQuery 1.4 this technique also checks the 'etag' specified by the server to catch unmodified data.
|
|
115
114
|
*/
|
|
116
|
-
ifModified?: boolean;
|
|
115
|
+
ifModified?: boolean | undefined;
|
|
117
116
|
/**
|
|
118
117
|
* Allow the current environment to be recognized as "local," (e.g. the filesystem), even if jQuery does not recognize it as such by default. The following protocols are currently recognized as local: file, *-extension, and widget. If the isLocal setting needs modification, it is recommended to do so once in the $.ajaxSetup() method. (version added: 1.5.1)
|
|
119
118
|
*/
|
|
120
|
-
isLocal?: boolean;
|
|
119
|
+
isLocal?: boolean | undefined;
|
|
121
120
|
/**
|
|
122
121
|
* Override the callback function name in a jsonp request. This value will be used instead of 'callback' in the 'callback=?' part of the query string in the url. So {jsonp:'onJSONPLoad'} would result in 'onJSONPLoad=?' passed to the server. As of jQuery 1.5, setting the jsonp option to false prevents jQuery from adding the "?callback" string to the URL or attempting to use "=?" for transformation. In this case, you should also explicitly set the jsonpCallback setting. For example, { jsonp: false, jsonpCallback: "callbackName" }
|
|
123
122
|
*/
|
|
@@ -129,27 +128,27 @@ interface JQueryAjaxSettings {
|
|
|
129
128
|
/**
|
|
130
129
|
* The HTTP method to use for the request (e.g. "POST", "GET", "PUT"). (version added: 1.9.0)
|
|
131
130
|
*/
|
|
132
|
-
method?: string;
|
|
131
|
+
method?: string | undefined;
|
|
133
132
|
/**
|
|
134
133
|
* A MIME type to override the XHR MIME type. (version added: 1.5.1)
|
|
135
134
|
*/
|
|
136
|
-
mimeType?: string;
|
|
135
|
+
mimeType?: string | undefined;
|
|
137
136
|
/**
|
|
138
137
|
* A password to be used with XMLHttpRequest in response to an HTTP access authentication request.
|
|
139
138
|
*/
|
|
140
|
-
password?: string;
|
|
139
|
+
password?: string | undefined;
|
|
141
140
|
/**
|
|
142
141
|
* By default, data passed in to the data option as an object (technically, anything other than a string) will be processed and transformed into a query string, fitting to the default content-type "application/x-www-form-urlencoded". If you want to send a DOMDocument, or other non-processed data, set this option to false.
|
|
143
142
|
*/
|
|
144
|
-
processData?: boolean;
|
|
143
|
+
processData?: boolean | undefined;
|
|
145
144
|
/**
|
|
146
145
|
* Only applies when the "script" transport is used (e.g., cross-domain requests with "jsonp" or "script" dataType and "GET" type). Sets the charset attribute on the script tag used in the request. Used when the character set on the local page is not the same as the one on the remote script.
|
|
147
146
|
*/
|
|
148
|
-
scriptCharset?: string;
|
|
147
|
+
scriptCharset?: string | undefined;
|
|
149
148
|
/**
|
|
150
149
|
* An object of numeric HTTP codes and functions to be called when the response has the corresponding code. f the request is successful, the status code functions take the same parameters as the success callback; if it results in an error (including 3xx redirect), they take the same parameters as the error callback. (version added: 1.5)
|
|
151
150
|
*/
|
|
152
|
-
statusCode?: { [key: string]: any; };
|
|
151
|
+
statusCode?: { [key: string]: any; } | undefined;
|
|
153
152
|
/**
|
|
154
153
|
* 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.
|
|
155
154
|
*/
|
|
@@ -157,23 +156,23 @@ interface JQueryAjaxSettings {
|
|
|
157
156
|
/**
|
|
158
157
|
* 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.
|
|
159
158
|
*/
|
|
160
|
-
timeout?: number;
|
|
159
|
+
timeout?: number | undefined;
|
|
161
160
|
/**
|
|
162
161
|
* Set this to true if you wish to use the traditional style of parameter serialization.
|
|
163
162
|
*/
|
|
164
|
-
traditional?: boolean;
|
|
163
|
+
traditional?: boolean | undefined;
|
|
165
164
|
/**
|
|
166
165
|
* The type of request to make ("POST" or "GET"), default is "GET". Note: Other HTTP request methods, such as PUT and DELETE, can also be used here, but they are not supported by all browsers.
|
|
167
166
|
*/
|
|
168
|
-
type?: string;
|
|
167
|
+
type?: string | undefined;
|
|
169
168
|
/**
|
|
170
169
|
* A string containing the URL to which the request is sent.
|
|
171
170
|
*/
|
|
172
|
-
url?: string;
|
|
171
|
+
url?: string | undefined;
|
|
173
172
|
/**
|
|
174
173
|
* A username to be used with XMLHttpRequest in response to an HTTP access authentication request.
|
|
175
174
|
*/
|
|
176
|
-
username?: string;
|
|
175
|
+
username?: string | undefined;
|
|
177
176
|
/**
|
|
178
177
|
* Callback for creating the XMLHttpRequest object. Defaults to the ActiveXObject when available (IE), the XMLHttpRequest otherwise. Override to provide your own implementation for XMLHttpRequest or enhancements to the factory.
|
|
179
178
|
*/
|
|
@@ -181,7 +180,7 @@ interface JQueryAjaxSettings {
|
|
|
181
180
|
/**
|
|
182
181
|
* An object of fieldName-fieldValue pairs to set on the native XHR object. For example, you can use it to set withCredentials to true for cross-domain requests if needed. In jQuery 1.5, the withCredentials property was not propagated to the native XHR and thus CORS requests requiring it would ignore this flag. For this reason, we recommend using jQuery 1.5.1+ should you require the use of it. (version added: 1.5.1)
|
|
183
182
|
*/
|
|
184
|
-
xhrFields?: { [key: string]: any; };
|
|
183
|
+
xhrFields?: { [key: string]: any; } | undefined;
|
|
185
184
|
}
|
|
186
185
|
|
|
187
186
|
/**
|
|
@@ -592,6 +591,7 @@ interface BaseJQueryEventObject extends Event {
|
|
|
592
591
|
pageY: number;
|
|
593
592
|
/**
|
|
594
593
|
* For key or mouse events, this property indicates the specific key or button that was pressed.
|
|
594
|
+
* @deprecated Use `key` for KeyEvents or `button` for MouseEvents instead.
|
|
595
595
|
* @see {@link https://api.jquery.com/event.which/}
|
|
596
596
|
*/
|
|
597
597
|
which: number;
|
|
@@ -622,9 +622,12 @@ interface JQueryMouseEventObject extends JQueryInputEventObject {
|
|
|
622
622
|
}
|
|
623
623
|
|
|
624
624
|
interface JQueryKeyEventObject extends JQueryInputEventObject {
|
|
625
|
-
|
|
625
|
+
/** @deprecated */
|
|
626
|
+
char: string;
|
|
627
|
+
/** @deprecated */
|
|
626
628
|
charCode: number;
|
|
627
|
-
key:
|
|
629
|
+
key: string;
|
|
630
|
+
/** @deprecated */
|
|
628
631
|
keyCode: number;
|
|
629
632
|
}
|
|
630
633
|
|
|
@@ -642,25 +645,25 @@ interface JQueryEventObject extends BaseJQueryEventObject, JQueryInputEventObjec
|
|
|
642
645
|
* @deprecated since version 1.9
|
|
643
646
|
*/
|
|
644
647
|
interface JQuerySupport {
|
|
645
|
-
ajax?: boolean;
|
|
646
|
-
boxModel?: boolean;
|
|
647
|
-
changeBubbles?: boolean;
|
|
648
|
-
checkClone?: boolean;
|
|
649
|
-
checkOn?: boolean;
|
|
650
|
-
cors?: boolean;
|
|
651
|
-
cssFloat?: boolean;
|
|
652
|
-
hrefNormalized?: boolean;
|
|
653
|
-
htmlSerialize?: boolean;
|
|
654
|
-
leadingWhitespace?: boolean;
|
|
655
|
-
noCloneChecked?: boolean;
|
|
656
|
-
noCloneEvent?: boolean;
|
|
657
|
-
opacity?: boolean;
|
|
658
|
-
optDisabled?: boolean;
|
|
659
|
-
optSelected?: boolean;
|
|
648
|
+
ajax?: boolean | undefined;
|
|
649
|
+
boxModel?: boolean | undefined;
|
|
650
|
+
changeBubbles?: boolean | undefined;
|
|
651
|
+
checkClone?: boolean | undefined;
|
|
652
|
+
checkOn?: boolean | undefined;
|
|
653
|
+
cors?: boolean | undefined;
|
|
654
|
+
cssFloat?: boolean | undefined;
|
|
655
|
+
hrefNormalized?: boolean | undefined;
|
|
656
|
+
htmlSerialize?: boolean | undefined;
|
|
657
|
+
leadingWhitespace?: boolean | undefined;
|
|
658
|
+
noCloneChecked?: boolean | undefined;
|
|
659
|
+
noCloneEvent?: boolean | undefined;
|
|
660
|
+
opacity?: boolean | undefined;
|
|
661
|
+
optDisabled?: boolean | undefined;
|
|
662
|
+
optSelected?: boolean | undefined;
|
|
660
663
|
scriptEval? (): boolean;
|
|
661
|
-
style?: boolean;
|
|
662
|
-
submitBubbles?: boolean;
|
|
663
|
-
tbody?: boolean;
|
|
664
|
+
style?: boolean | undefined;
|
|
665
|
+
submitBubbles?: boolean | undefined;
|
|
666
|
+
tbody?: boolean | undefined;
|
|
664
667
|
}
|
|
665
668
|
|
|
666
669
|
interface JQueryParam {
|
|
@@ -728,35 +731,35 @@ interface JQueryAnimationOptions {
|
|
|
728
731
|
/**
|
|
729
732
|
* A string indicating which easing function to use for the transition.
|
|
730
733
|
*/
|
|
731
|
-
easing?: string;
|
|
734
|
+
easing?: string | undefined;
|
|
732
735
|
/**
|
|
733
736
|
* A function to call once the animation is complete.
|
|
734
737
|
*/
|
|
735
|
-
complete?: Function;
|
|
738
|
+
complete?: Function | undefined;
|
|
736
739
|
/**
|
|
737
740
|
* A function to be called for each animated property of each animated element. This function provides an opportunity to modify the Tween object to change the value of the property before it is set.
|
|
738
741
|
*/
|
|
739
|
-
step?: (now: number, tween: any) => any;
|
|
742
|
+
step?: ((now: number, tween: any) => any) | undefined;
|
|
740
743
|
/**
|
|
741
744
|
* A function to be called after each step of the animation, only once per animated element regardless of the number of animated properties. (version added: 1.8)
|
|
742
745
|
*/
|
|
743
|
-
progress?: (animation: JQueryPromise<any>, progress: number, remainingMs: number) => any;
|
|
746
|
+
progress?: ((animation: JQueryPromise<any>, progress: number, remainingMs: number) => any) | undefined;
|
|
744
747
|
/**
|
|
745
748
|
* A function to call when the animation begins. (version added: 1.8)
|
|
746
749
|
*/
|
|
747
|
-
start?: (animation: JQueryPromise<any>) => any;
|
|
750
|
+
start?: ((animation: JQueryPromise<any>) => any) | undefined;
|
|
748
751
|
/**
|
|
749
752
|
* A function to be called when the animation completes (its Promise object is resolved). (version added: 1.8)
|
|
750
753
|
*/
|
|
751
|
-
done?: (animation: JQueryPromise<any>, jumpedToEnd: boolean) => any;
|
|
754
|
+
done?: ((animation: JQueryPromise<any>, jumpedToEnd: boolean) => any) | undefined;
|
|
752
755
|
/**
|
|
753
756
|
* A function to be called when the animation fails to complete (its Promise object is rejected). (version added: 1.8)
|
|
754
757
|
*/
|
|
755
|
-
fail?: (animation: JQueryPromise<any>, jumpedToEnd: boolean) => any;
|
|
758
|
+
fail?: ((animation: JQueryPromise<any>, jumpedToEnd: boolean) => any) | undefined;
|
|
756
759
|
/**
|
|
757
760
|
* A function to be called when the animation completes or stops without completing (its Promise object is either resolved or rejected). (version added: 1.8)
|
|
758
761
|
*/
|
|
759
|
-
always?: (animation: JQueryPromise<any>, jumpedToEnd: boolean) => any;
|
|
762
|
+
always?: ((animation: JQueryPromise<any>, jumpedToEnd: boolean) => any) | undefined;
|
|
760
763
|
/**
|
|
761
764
|
* A Boolean indicating whether to place the animation in the effects queue. If false, the animation will begin immediately. As of jQuery 1.7, the queue option can also accept a string, in which case the animation is added to the queue represented by that string. When a custom queue name is used the animation does not automatically start; you must call .dequeue("queuename") to start it.
|
|
762
765
|
*/
|
|
@@ -764,7 +767,7 @@ interface JQueryAnimationOptions {
|
|
|
764
767
|
/**
|
|
765
768
|
* A map of one or more of the CSS properties defined by the properties argument and their corresponding easing functions. (version added: 1.4)
|
|
766
769
|
*/
|
|
767
|
-
specialEasing?: Object;
|
|
770
|
+
specialEasing?: Object | undefined;
|
|
768
771
|
}
|
|
769
772
|
|
|
770
773
|
interface JQueryEasingFunction {
|
|
@@ -824,7 +827,7 @@ interface JQueryStatic {
|
|
|
824
827
|
* @see {@link https://api.jquery.com/jQuery.ajaxTransport/}
|
|
825
828
|
*/
|
|
826
829
|
ajaxTransport(dataType: string, handler: (opts: any, originalOpts: JQueryAjaxSettings, jqXHR: JQueryXHR) => any): void;
|
|
827
|
-
|
|
830
|
+
|
|
828
831
|
ajaxSettings: JQueryAjaxSettings;
|
|
829
832
|
|
|
830
833
|
/**
|
|
@@ -2773,20 +2776,20 @@ interface JQuery {
|
|
|
2773
2776
|
* Attach an event handler function for one or more events to the selected elements.
|
|
2774
2777
|
*
|
|
2775
2778
|
* @param events One or more space-separated event types and optional namespaces, such as "click" or "keydown.myPlugin".
|
|
2776
|
-
* @param
|
|
2779
|
+
* @param selector A selector string to filter the descendants of the selected elements that trigger the event. If the selector is null or omitted, the event is always triggered when it reaches the selected element.
|
|
2777
2780
|
* @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.
|
|
2778
2781
|
* @see {@link https://api.jquery.com/on/#on-events-selector-data-handler}
|
|
2779
|
-
|
|
2780
|
-
on(events: string,
|
|
2782
|
+
*/
|
|
2783
|
+
on(events: string, selector: string, handler: (eventObject: JQueryEventObject, ...eventData: any[]) => any): JQuery;
|
|
2781
2784
|
/**
|
|
2782
2785
|
* Attach an event handler function for one or more events to the selected elements.
|
|
2783
2786
|
*
|
|
2784
2787
|
* @param events One or more space-separated event types and optional namespaces, such as "click" or "keydown.myPlugin".
|
|
2785
|
-
* @param
|
|
2788
|
+
* @param data Data to be passed to the handler in event.data when an event is triggered.
|
|
2786
2789
|
* @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.
|
|
2787
2790
|
* @see {@link https://api.jquery.com/on/#on-events-selector-data-handler}
|
|
2788
|
-
|
|
2789
|
-
on(events: string,
|
|
2791
|
+
*/
|
|
2792
|
+
on(events: string, data : any, handler: (eventObject: JQueryEventObject, ...args: any[]) => any): JQuery;
|
|
2790
2793
|
/**
|
|
2791
2794
|
* Attach an event handler function for one or more events to the selected elements.
|
|
2792
2795
|
*
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/jquery",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.38",
|
|
4
4
|
"description": "TypeScript definitions for jQuery",
|
|
5
|
+
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jquery",
|
|
5
6
|
"license": "MIT",
|
|
6
7
|
"contributors": [
|
|
7
8
|
{
|
|
8
9
|
"name": "Boris Yankov",
|
|
9
|
-
"url": "https://github.com/borisyankov
|
|
10
|
+
"url": "https://github.com/borisyankov",
|
|
11
|
+
"githubUsername": "borisyankov"
|
|
10
12
|
},
|
|
11
13
|
{
|
|
12
14
|
"name": "Christian Hoffmeister",
|
|
@@ -78,11 +80,6 @@
|
|
|
78
80
|
"url": "https://github.com/benjaminjackman",
|
|
79
81
|
"githubUsername": "benjaminjackman"
|
|
80
82
|
},
|
|
81
|
-
{
|
|
82
|
-
"name": "Poul Sorensen",
|
|
83
|
-
"url": "https://github.com/s093294",
|
|
84
|
-
"githubUsername": "s093294"
|
|
85
|
-
},
|
|
86
83
|
{
|
|
87
84
|
"name": "Josh Strobl",
|
|
88
85
|
"url": "https://github.com/JoshStrobl",
|
|
@@ -90,7 +87,8 @@
|
|
|
90
87
|
},
|
|
91
88
|
{
|
|
92
89
|
"name": "John Reilly",
|
|
93
|
-
"url": "https://github.com/johnnyreilly
|
|
90
|
+
"url": "https://github.com/johnnyreilly",
|
|
91
|
+
"githubUsername": "johnnyreilly"
|
|
94
92
|
},
|
|
95
93
|
{
|
|
96
94
|
"name": "Dick van den Brink",
|
|
@@ -109,12 +107,14 @@
|
|
|
109
107
|
}
|
|
110
108
|
],
|
|
111
109
|
"main": "",
|
|
110
|
+
"types": "index.d.ts",
|
|
112
111
|
"repository": {
|
|
113
112
|
"type": "git",
|
|
114
|
-
"url": "https://
|
|
113
|
+
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
|
|
114
|
+
"directory": "types/jquery"
|
|
115
115
|
},
|
|
116
116
|
"scripts": {},
|
|
117
117
|
"dependencies": {},
|
|
118
|
-
"typesPublisherContentHash": "
|
|
119
|
-
"typeScriptVersion": "
|
|
118
|
+
"typesPublisherContentHash": "15413e28f2cfc89a719525d356d5e791187b3d8c127805ec1a4a63e823ba3d63",
|
|
119
|
+
"typeScriptVersion": "3.8"
|
|
120
120
|
}
|
jquery v1/README.md
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# Installation
|
|
2
|
-
> `npm install --save @types/jquery`
|
|
3
|
-
|
|
4
|
-
# Summary
|
|
5
|
-
This package contains type definitions for jQuery (http://jquery.com/).
|
|
6
|
-
|
|
7
|
-
# Details
|
|
8
|
-
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jquery/v1
|
|
9
|
-
|
|
10
|
-
Additional Details
|
|
11
|
-
* Last updated: Mon, 26 Feb 2018 20:02:51 GMT
|
|
12
|
-
* Dependencies: none
|
|
13
|
-
* Global values: $, jQuery
|
|
14
|
-
|
|
15
|
-
# Credits
|
|
16
|
-
These definitions were written by Boris Yankov <https://github.com/borisyankov/>, Christian Hoffmeister <https://github.com/choffmeister>, Steve Fenton <https://github.com/Steve-Fenton>, Diullei Gomes <https://github.com/Diullei>, Tass Iliopoulos <https://github.com/tasoili>, Jason Swearingen <https://github.com/jasons-novaleaf>, Sean Hill <https://github.com/seanski>, Guus Goossens <https://github.com/Guuz>, Kelly Summerlin <https://github.com/ksummerlin>, Basarat Ali Syed <https://github.com/basarat>, Nicholas Wolverson <https://github.com/nwolverson>, Derek Cicerone <https://github.com/derekcicerone>, Andrew Gaspar <https://github.com/AndrewGaspar>, Seikichi Kondo <https://github.com/seikichi>, Benjamin Jackman <https://github.com/benjaminjackman>, Poul Sorensen <https://github.com/s093294>, Josh Strobl <https://github.com/JoshStrobl>, John Reilly <https://github.com/johnnyreilly/>, Dick van den Brink <https://github.com/DickvdBrink>, Thomas Schulz <https://github.com/King2500>, Leonard Thieu <https://github.com/leonard-thieu>.
|