@types/jquery 3.2.16 → 3.3.1

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.
Files changed (3) hide show
  1. jquery/README.md +1 -1
  2. jquery/index.d.ts +214 -5
  3. jquery/package.json +2 -2
jquery/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Type definitions for jquery 3.2
1
+ // Type definitions for jquery 3.3
2
2
  // Project: https://jquery.com
3
3
  // Definitions by: Leonard Thieu <https://github.com/leonard-thieu>
4
4
  // Boris Yankov <https://github.com/borisyankov>
@@ -152,7 +152,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
152
152
  * @since 1.4
153
153
  */
154
154
  (selector_object_callback?: JQuery.Selector | JQuery.htmlString | JQuery.TypeOrArray<Element> | JQuery |
155
- JQuery.PlainObject |
155
+ JQuery.PlainObject | Window |
156
156
  ((this: Document, $: JQueryStatic<TElement>) => void)): JQuery<TElement>;
157
157
  /**
158
158
  * A multi-purpose callbacks list object that provides a powerful way to manage callback lists.
@@ -219,6 +219,10 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
219
219
  */
220
220
  ajaxTransport(dataType: string,
221
221
  handler: (options: JQuery.AjaxSettings, originalOptions: JQuery.AjaxSettings, jqXHR: JQuery.jqXHR) => JQuery.Transport | void): void;
222
+ /**
223
+ * @deprecated 3.3
224
+ */
225
+ camelCase(value: string): string;
222
226
  /**
223
227
  * Check to see if a DOM element is a descendant of another DOM element.
224
228
  *
@@ -600,6 +604,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
600
604
  * @param obj Object to test whether or not it is a function.
601
605
  * @see {@link https://api.jquery.com/jQuery.isFunction/}
602
606
  * @since 1.2
607
+ * @deprecated 3.3
603
608
  */
604
609
  isFunction(obj: any): obj is Function;
605
610
  /**
@@ -608,6 +613,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
608
613
  * @param value The value to be tested.
609
614
  * @see {@link https://api.jquery.com/jQuery.isNumeric/}
610
615
  * @since 1.7
616
+ * @deprecated 3.3
611
617
  */
612
618
  isNumeric(value: any): value is number;
613
619
  /**
@@ -624,6 +630,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
624
630
  * @param obj Object to test whether or not it is a window.
625
631
  * @see {@link https://api.jquery.com/jQuery.isWindow/}
626
632
  * @since 1.4.3
633
+ * @deprecated 3.3
627
634
  */
628
635
  isWindow(obj: any): obj is Window;
629
636
  /**
@@ -694,6 +701,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
694
701
  *
695
702
  * @see {@link https://api.jquery.com/jQuery.now/}
696
703
  * @since 1.4.3
704
+ * @deprecated 3.3 Use Date.now().
697
705
  */
698
706
  now(): number;
699
707
  /**
@@ -814,6 +822,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
814
822
  * @param context The object to which the context (this) of the function should be set.
815
823
  * @see {@link https://api.jquery.com/jQuery.proxy/}
816
824
  * @since 1.9
825
+ * @deprecated 3.3 Use Function#bind.
817
826
  */
818
827
  proxy<TReturn,
819
828
  A, B, C, D, E, F, G>(fn: (a: A, b: B, c: C, d: D, e: E, f: F, g: G) => TReturn,
@@ -826,6 +835,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
826
835
  * @param context The object to which the context (this) of the function should be set.
827
836
  * @see {@link https://api.jquery.com/jQuery.proxy/}
828
837
  * @since 1.9
838
+ * @deprecated 3.3 Use Function#bind.
829
839
  */
830
840
  proxy<TReturn,
831
841
  A, B, C, D, E, F>(fn: (a: A, b: B, c: C, d: D, e: E, f: F) => TReturn,
@@ -838,6 +848,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
838
848
  * @param context The object to which the context (this) of the function should be set.
839
849
  * @see {@link https://api.jquery.com/jQuery.proxy/}
840
850
  * @since 1.9
851
+ * @deprecated 3.3 Use Function#bind.
841
852
  */
842
853
  proxy<TReturn,
843
854
  A, B, C, D, E>(fn: (a: A, b: B, c: C, d: D, e: E) => TReturn,
@@ -850,6 +861,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
850
861
  * @param context The object to which the context (this) of the function should be set.
851
862
  * @see {@link https://api.jquery.com/jQuery.proxy/}
852
863
  * @since 1.9
864
+ * @deprecated 3.3 Use Function#bind.
853
865
  */
854
866
  proxy<TReturn,
855
867
  A, B, C, D>(fn: (a: A, b: B, c: C, d: D) => TReturn,
@@ -862,6 +874,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
862
874
  * @param context The object to which the context (this) of the function should be set.
863
875
  * @see {@link https://api.jquery.com/jQuery.proxy/}
864
876
  * @since 1.9
877
+ * @deprecated 3.3 Use Function#bind.
865
878
  */
866
879
  proxy<TReturn,
867
880
  A, B, C>(fn: (a: A, b: B, c: C) => TReturn,
@@ -874,6 +887,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
874
887
  * @param context The object to which the context (this) of the function should be set.
875
888
  * @see {@link https://api.jquery.com/jQuery.proxy/}
876
889
  * @since 1.9
890
+ * @deprecated 3.3 Use Function#bind.
877
891
  */
878
892
  proxy<TReturn,
879
893
  A, B>(fn: (a: A, b: B) => TReturn,
@@ -887,6 +901,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
887
901
  * @see {@link https://api.jquery.com/jQuery.proxy/}
888
902
  * @since 1.4`
889
903
  * @since 1.6
904
+ * @deprecated 3.3 Use Function#bind.
890
905
  */
891
906
  proxy<TReturn,
892
907
  A>(fn: (a: A) => TReturn,
@@ -899,6 +914,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
899
914
  * @param context The object to which the context (this) of the function should be set.
900
915
  * @see {@link https://api.jquery.com/jQuery.proxy/}
901
916
  * @since 1.9
917
+ * @deprecated 3.3 Use Function#bind.
902
918
  */
903
919
  proxy<TReturn>(fn: () => TReturn,
904
920
  context: null | undefined): () => TReturn;
@@ -914,6 +930,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
914
930
  * @param context The object to which the context (this) of the function should be set.
915
931
  * @see {@link https://api.jquery.com/jQuery.proxy/}
916
932
  * @since 1.9
933
+ * @deprecated 3.3 Use Function#bind.
917
934
  */
918
935
  proxy<TReturn,
919
936
  A, B, C, D, E, F, G,
@@ -928,6 +945,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
928
945
  * @param context The object to which the context (this) of the function should be set.
929
946
  * @see {@link https://api.jquery.com/jQuery.proxy/}
930
947
  * @since 1.9
948
+ * @deprecated 3.3 Use Function#bind.
931
949
  */
932
950
  proxy<TReturn,
933
951
  A, B, C, D, E, F,
@@ -942,6 +960,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
942
960
  * @param context The object to which the context (this) of the function should be set.
943
961
  * @see {@link https://api.jquery.com/jQuery.proxy/}
944
962
  * @since 1.9
963
+ * @deprecated 3.3 Use Function#bind.
945
964
  */
946
965
  proxy<TReturn,
947
966
  A, B, C, D, E,
@@ -956,6 +975,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
956
975
  * @param context The object to which the context (this) of the function should be set.
957
976
  * @see {@link https://api.jquery.com/jQuery.proxy/}
958
977
  * @since 1.9
978
+ * @deprecated 3.3 Use Function#bind.
959
979
  */
960
980
  proxy<TReturn,
961
981
  A, B, C, D,
@@ -970,6 +990,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
970
990
  * @param context The object to which the context (this) of the function should be set.
971
991
  * @see {@link https://api.jquery.com/jQuery.proxy/}
972
992
  * @since 1.9
993
+ * @deprecated 3.3 Use Function#bind.
973
994
  */
974
995
  proxy<TReturn,
975
996
  A, B, C,
@@ -984,6 +1005,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
984
1005
  * @param context The object to which the context (this) of the function should be set.
985
1006
  * @see {@link https://api.jquery.com/jQuery.proxy/}
986
1007
  * @since 1.9
1008
+ * @deprecated 3.3 Use Function#bind.
987
1009
  */
988
1010
  proxy<TReturn,
989
1011
  A, B,
@@ -998,6 +1020,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
998
1020
  * @param context The object to which the context (this) of the function should be set.
999
1021
  * @see {@link https://api.jquery.com/jQuery.proxy/}
1000
1022
  * @since 1.9
1023
+ * @deprecated 3.3 Use Function#bind.
1001
1024
  */
1002
1025
  proxy<TReturn,
1003
1026
  A,
@@ -1012,6 +1035,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
1012
1035
  * @param context The object to which the context (this) of the function should be set.
1013
1036
  * @see {@link https://api.jquery.com/jQuery.proxy/}
1014
1037
  * @since 1.9
1038
+ * @deprecated 3.3 Use Function#bind.
1015
1039
  */
1016
1040
  proxy<TReturn,
1017
1041
  T>(fn: (t: T) => TReturn,
@@ -1028,6 +1052,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
1028
1052
  * @param context The object to which the context (this) of the function should be set.
1029
1053
  * @see {@link https://api.jquery.com/jQuery.proxy/}
1030
1054
  * @since 1.9
1055
+ * @deprecated 3.3 Use Function#bind.
1031
1056
  */
1032
1057
  proxy<TReturn,
1033
1058
  A, B, C, D, E, F, G,
@@ -1042,6 +1067,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
1042
1067
  * @param context The object to which the context (this) of the function should be set.
1043
1068
  * @see {@link https://api.jquery.com/jQuery.proxy/}
1044
1069
  * @since 1.9
1070
+ * @deprecated 3.3 Use Function#bind.
1045
1071
  */
1046
1072
  proxy<TReturn,
1047
1073
  A, B, C, D, E, F,
@@ -1056,6 +1082,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
1056
1082
  * @param context The object to which the context (this) of the function should be set.
1057
1083
  * @see {@link https://api.jquery.com/jQuery.proxy/}
1058
1084
  * @since 1.9
1085
+ * @deprecated 3.3 Use Function#bind.
1059
1086
  */
1060
1087
  proxy<TReturn,
1061
1088
  A, B, C, D, E,
@@ -1070,6 +1097,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
1070
1097
  * @param context The object to which the context (this) of the function should be set.
1071
1098
  * @see {@link https://api.jquery.com/jQuery.proxy/}
1072
1099
  * @since 1.9
1100
+ * @deprecated 3.3 Use Function#bind.
1073
1101
  */
1074
1102
  proxy<TReturn,
1075
1103
  A, B, C, D,
@@ -1084,6 +1112,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
1084
1112
  * @param context The object to which the context (this) of the function should be set.
1085
1113
  * @see {@link https://api.jquery.com/jQuery.proxy/}
1086
1114
  * @since 1.9
1115
+ * @deprecated 3.3 Use Function#bind.
1087
1116
  */
1088
1117
  proxy<TReturn,
1089
1118
  A, B, C,
@@ -1098,6 +1127,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
1098
1127
  * @param context The object to which the context (this) of the function should be set.
1099
1128
  * @see {@link https://api.jquery.com/jQuery.proxy/}
1100
1129
  * @since 1.9
1130
+ * @deprecated 3.3 Use Function#bind.
1101
1131
  */
1102
1132
  proxy<TReturn,
1103
1133
  A, B,
@@ -1112,6 +1142,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
1112
1142
  * @param context The object to which the context (this) of the function should be set.
1113
1143
  * @see {@link https://api.jquery.com/jQuery.proxy/}
1114
1144
  * @since 1.9
1145
+ * @deprecated 3.3 Use Function#bind.
1115
1146
  */
1116
1147
  proxy<TReturn,
1117
1148
  A,
@@ -1126,6 +1157,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
1126
1157
  * @param context The object to which the context (this) of the function should be set.
1127
1158
  * @see {@link https://api.jquery.com/jQuery.proxy/}
1128
1159
  * @since 1.9
1160
+ * @deprecated 3.3 Use Function#bind.
1129
1161
  */
1130
1162
  proxy<TReturn,
1131
1163
  T, U>(fn: (t: T, u: U) => TReturn,
@@ -1142,6 +1174,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
1142
1174
  * @param context The object to which the context (this) of the function should be set.
1143
1175
  * @see {@link https://api.jquery.com/jQuery.proxy/}
1144
1176
  * @since 1.9
1177
+ * @deprecated 3.3 Use Function#bind.
1145
1178
  */
1146
1179
  proxy<TReturn,
1147
1180
  A, B, C, D, E, F, G,
@@ -1156,6 +1189,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
1156
1189
  * @param context The object to which the context (this) of the function should be set.
1157
1190
  * @see {@link https://api.jquery.com/jQuery.proxy/}
1158
1191
  * @since 1.9
1192
+ * @deprecated 3.3 Use Function#bind.
1159
1193
  */
1160
1194
  proxy<TReturn,
1161
1195
  A, B, C, D, E, F,
@@ -1170,6 +1204,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
1170
1204
  * @param context The object to which the context (this) of the function should be set.
1171
1205
  * @see {@link https://api.jquery.com/jQuery.proxy/}
1172
1206
  * @since 1.9
1207
+ * @deprecated 3.3 Use Function#bind.
1173
1208
  */
1174
1209
  proxy<TReturn,
1175
1210
  A, B, C, D, E,
@@ -1184,6 +1219,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
1184
1219
  * @param context The object to which the context (this) of the function should be set.
1185
1220
  * @see {@link https://api.jquery.com/jQuery.proxy/}
1186
1221
  * @since 1.9
1222
+ * @deprecated 3.3 Use Function#bind.
1187
1223
  */
1188
1224
  proxy<TReturn,
1189
1225
  A, B, C, D,
@@ -1198,6 +1234,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
1198
1234
  * @param context The object to which the context (this) of the function should be set.
1199
1235
  * @see {@link https://api.jquery.com/jQuery.proxy/}
1200
1236
  * @since 1.9
1237
+ * @deprecated 3.3 Use Function#bind.
1201
1238
  */
1202
1239
  proxy<TReturn,
1203
1240
  A, B, C,
@@ -1212,6 +1249,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
1212
1249
  * @param context The object to which the context (this) of the function should be set.
1213
1250
  * @see {@link https://api.jquery.com/jQuery.proxy/}
1214
1251
  * @since 1.9
1252
+ * @deprecated 3.3 Use Function#bind.
1215
1253
  */
1216
1254
  proxy<TReturn,
1217
1255
  A, B,
@@ -1226,6 +1264,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
1226
1264
  * @param context The object to which the context (this) of the function should be set.
1227
1265
  * @see {@link https://api.jquery.com/jQuery.proxy/}
1228
1266
  * @since 1.9
1267
+ * @deprecated 3.3 Use Function#bind.
1229
1268
  */
1230
1269
  proxy<TReturn,
1231
1270
  A,
@@ -1240,6 +1279,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
1240
1279
  * @param context The object to which the context (this) of the function should be set.
1241
1280
  * @see {@link https://api.jquery.com/jQuery.proxy/}
1242
1281
  * @since 1.9
1282
+ * @deprecated 3.3 Use Function#bind.
1243
1283
  */
1244
1284
  proxy<TReturn,
1245
1285
  T, U, V>(fn: (t: T, u: U, v: V) => TReturn,
@@ -1256,6 +1296,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
1256
1296
  * @param context The object to which the context (this) of the function should be set.
1257
1297
  * @see {@link https://api.jquery.com/jQuery.proxy/}
1258
1298
  * @since 1.9
1299
+ * @deprecated 3.3 Use Function#bind.
1259
1300
  */
1260
1301
  proxy<TReturn,
1261
1302
  A, B, C, D, E, F, G,
@@ -1270,6 +1311,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
1270
1311
  * @param context The object to which the context (this) of the function should be set.
1271
1312
  * @see {@link https://api.jquery.com/jQuery.proxy/}
1272
1313
  * @since 1.9
1314
+ * @deprecated 3.3 Use Function#bind.
1273
1315
  */
1274
1316
  proxy<TReturn,
1275
1317
  A, B, C, D, E, F,
@@ -1284,6 +1326,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
1284
1326
  * @param context The object to which the context (this) of the function should be set.
1285
1327
  * @see {@link https://api.jquery.com/jQuery.proxy/}
1286
1328
  * @since 1.9
1329
+ * @deprecated 3.3 Use Function#bind.
1287
1330
  */
1288
1331
  proxy<TReturn,
1289
1332
  A, B, C, D, E,
@@ -1298,6 +1341,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
1298
1341
  * @param context The object to which the context (this) of the function should be set.
1299
1342
  * @see {@link https://api.jquery.com/jQuery.proxy/}
1300
1343
  * @since 1.9
1344
+ * @deprecated 3.3 Use Function#bind.
1301
1345
  */
1302
1346
  proxy<TReturn,
1303
1347
  A, B, C, D,
@@ -1312,6 +1356,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
1312
1356
  * @param context The object to which the context (this) of the function should be set.
1313
1357
  * @see {@link https://api.jquery.com/jQuery.proxy/}
1314
1358
  * @since 1.9
1359
+ * @deprecated 3.3 Use Function#bind.
1315
1360
  */
1316
1361
  proxy<TReturn,
1317
1362
  A, B, C,
@@ -1326,6 +1371,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
1326
1371
  * @param context The object to which the context (this) of the function should be set.
1327
1372
  * @see {@link https://api.jquery.com/jQuery.proxy/}
1328
1373
  * @since 1.9
1374
+ * @deprecated 3.3 Use Function#bind.
1329
1375
  */
1330
1376
  proxy<TReturn,
1331
1377
  A, B,
@@ -1340,6 +1386,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
1340
1386
  * @param context The object to which the context (this) of the function should be set.
1341
1387
  * @see {@link https://api.jquery.com/jQuery.proxy/}
1342
1388
  * @since 1.9
1389
+ * @deprecated 3.3 Use Function#bind.
1343
1390
  */
1344
1391
  proxy<TReturn,
1345
1392
  A,
@@ -1354,6 +1401,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
1354
1401
  * @param context The object to which the context (this) of the function should be set.
1355
1402
  * @see {@link https://api.jquery.com/jQuery.proxy/}
1356
1403
  * @since 1.9
1404
+ * @deprecated 3.3 Use Function#bind.
1357
1405
  */
1358
1406
  proxy<TReturn,
1359
1407
  T, U, V, W>(fn: (t: T, u: U, v: V, w: W) => TReturn,
@@ -1370,6 +1418,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
1370
1418
  * @param context The object to which the context (this) of the function should be set.
1371
1419
  * @see {@link https://api.jquery.com/jQuery.proxy/}
1372
1420
  * @since 1.9
1421
+ * @deprecated 3.3 Use Function#bind.
1373
1422
  */
1374
1423
  proxy<TReturn,
1375
1424
  A, B, C, D, E, F, G,
@@ -1384,6 +1433,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
1384
1433
  * @param context The object to which the context (this) of the function should be set.
1385
1434
  * @see {@link https://api.jquery.com/jQuery.proxy/}
1386
1435
  * @since 1.9
1436
+ * @deprecated 3.3 Use Function#bind.
1387
1437
  */
1388
1438
  proxy<TReturn,
1389
1439
  A, B, C, D, E, F,
@@ -1398,6 +1448,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
1398
1448
  * @param context The object to which the context (this) of the function should be set.
1399
1449
  * @see {@link https://api.jquery.com/jQuery.proxy/}
1400
1450
  * @since 1.9
1451
+ * @deprecated 3.3 Use Function#bind.
1401
1452
  */
1402
1453
  proxy<TReturn,
1403
1454
  A, B, C, D, E,
@@ -1412,6 +1463,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
1412
1463
  * @param context The object to which the context (this) of the function should be set.
1413
1464
  * @see {@link https://api.jquery.com/jQuery.proxy/}
1414
1465
  * @since 1.9
1466
+ * @deprecated 3.3 Use Function#bind.
1415
1467
  */
1416
1468
  proxy<TReturn,
1417
1469
  A, B, C, D,
@@ -1426,6 +1478,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
1426
1478
  * @param context The object to which the context (this) of the function should be set.
1427
1479
  * @see {@link https://api.jquery.com/jQuery.proxy/}
1428
1480
  * @since 1.9
1481
+ * @deprecated 3.3 Use Function#bind.
1429
1482
  */
1430
1483
  proxy<TReturn,
1431
1484
  A, B, C,
@@ -1440,6 +1493,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
1440
1493
  * @param context The object to which the context (this) of the function should be set.
1441
1494
  * @see {@link https://api.jquery.com/jQuery.proxy/}
1442
1495
  * @since 1.9
1496
+ * @deprecated 3.3 Use Function#bind.
1443
1497
  */
1444
1498
  proxy<TReturn,
1445
1499
  A, B,
@@ -1454,6 +1508,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
1454
1508
  * @param context The object to which the context (this) of the function should be set.
1455
1509
  * @see {@link https://api.jquery.com/jQuery.proxy/}
1456
1510
  * @since 1.9
1511
+ * @deprecated 3.3 Use Function#bind.
1457
1512
  */
1458
1513
  proxy<TReturn,
1459
1514
  A,
@@ -1468,6 +1523,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
1468
1523
  * @param context The object to which the context (this) of the function should be set.
1469
1524
  * @see {@link https://api.jquery.com/jQuery.proxy/}
1470
1525
  * @since 1.9
1526
+ * @deprecated 3.3 Use Function#bind.
1471
1527
  */
1472
1528
  proxy<TReturn,
1473
1529
  T, U, V, W, X>(fn: (t: T, u: U, v: V, w: W, x: X) => TReturn,
@@ -1484,6 +1540,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
1484
1540
  * @param context The object to which the context (this) of the function should be set.
1485
1541
  * @see {@link https://api.jquery.com/jQuery.proxy/}
1486
1542
  * @since 1.9
1543
+ * @deprecated 3.3 Use Function#bind.
1487
1544
  */
1488
1545
  proxy<TReturn,
1489
1546
  A, B, C, D, E, F, G,
@@ -1498,6 +1555,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
1498
1555
  * @param context The object to which the context (this) of the function should be set.
1499
1556
  * @see {@link https://api.jquery.com/jQuery.proxy/}
1500
1557
  * @since 1.9
1558
+ * @deprecated 3.3 Use Function#bind.
1501
1559
  */
1502
1560
  proxy<TReturn,
1503
1561
  A, B, C, D, E, F,
@@ -1512,6 +1570,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
1512
1570
  * @param context The object to which the context (this) of the function should be set.
1513
1571
  * @see {@link https://api.jquery.com/jQuery.proxy/}
1514
1572
  * @since 1.9
1573
+ * @deprecated 3.3 Use Function#bind.
1515
1574
  */
1516
1575
  proxy<TReturn,
1517
1576
  A, B, C, D, E,
@@ -1526,6 +1585,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
1526
1585
  * @param context The object to which the context (this) of the function should be set.
1527
1586
  * @see {@link https://api.jquery.com/jQuery.proxy/}
1528
1587
  * @since 1.9
1588
+ * @deprecated 3.3 Use Function#bind.
1529
1589
  */
1530
1590
  proxy<TReturn,
1531
1591
  A, B, C, D,
@@ -1540,6 +1600,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
1540
1600
  * @param context The object to which the context (this) of the function should be set.
1541
1601
  * @see {@link https://api.jquery.com/jQuery.proxy/}
1542
1602
  * @since 1.9
1603
+ * @deprecated 3.3 Use Function#bind.
1543
1604
  */
1544
1605
  proxy<TReturn,
1545
1606
  A, B, C,
@@ -1554,6 +1615,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
1554
1615
  * @param context The object to which the context (this) of the function should be set.
1555
1616
  * @see {@link https://api.jquery.com/jQuery.proxy/}
1556
1617
  * @since 1.9
1618
+ * @deprecated 3.3 Use Function#bind.
1557
1619
  */
1558
1620
  proxy<TReturn,
1559
1621
  A, B,
@@ -1568,6 +1630,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
1568
1630
  * @param context The object to which the context (this) of the function should be set.
1569
1631
  * @see {@link https://api.jquery.com/jQuery.proxy/}
1570
1632
  * @since 1.9
1633
+ * @deprecated 3.3 Use Function#bind.
1571
1634
  */
1572
1635
  proxy<TReturn,
1573
1636
  A,
@@ -1582,6 +1645,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
1582
1645
  * @param context The object to which the context (this) of the function should be set.
1583
1646
  * @see {@link https://api.jquery.com/jQuery.proxy/}
1584
1647
  * @since 1.9
1648
+ * @deprecated 3.3 Use Function#bind.
1585
1649
  */
1586
1650
  proxy<TReturn,
1587
1651
  T, U, V, W, X, Y>(fn: (t: T, u: U, v: V, w: W, x: X, y: Y) => TReturn,
@@ -1598,6 +1662,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
1598
1662
  * @param context The object to which the context (this) of the function should be set.
1599
1663
  * @see {@link https://api.jquery.com/jQuery.proxy/}
1600
1664
  * @since 1.9
1665
+ * @deprecated 3.3 Use Function#bind.
1601
1666
  */
1602
1667
  proxy<TReturn,
1603
1668
  A, B, C, D, E, F, G,
@@ -1612,6 +1677,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
1612
1677
  * @param context The object to which the context (this) of the function should be set.
1613
1678
  * @see {@link https://api.jquery.com/jQuery.proxy/}
1614
1679
  * @since 1.9
1680
+ * @deprecated 3.3 Use Function#bind.
1615
1681
  */
1616
1682
  proxy<TReturn,
1617
1683
  A, B, C, D, E, F,
@@ -1626,6 +1692,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
1626
1692
  * @param context The object to which the context (this) of the function should be set.
1627
1693
  * @see {@link https://api.jquery.com/jQuery.proxy/}
1628
1694
  * @since 1.9
1695
+ * @deprecated 3.3 Use Function#bind.
1629
1696
  */
1630
1697
  proxy<TReturn,
1631
1698
  A, B, C, D, E,
@@ -1640,6 +1707,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
1640
1707
  * @param context The object to which the context (this) of the function should be set.
1641
1708
  * @see {@link https://api.jquery.com/jQuery.proxy/}
1642
1709
  * @since 1.9
1710
+ * @deprecated 3.3 Use Function#bind.
1643
1711
  */
1644
1712
  proxy<TReturn,
1645
1713
  A, B, C, D,
@@ -1654,6 +1722,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
1654
1722
  * @param context The object to which the context (this) of the function should be set.
1655
1723
  * @see {@link https://api.jquery.com/jQuery.proxy/}
1656
1724
  * @since 1.9
1725
+ * @deprecated 3.3 Use Function#bind.
1657
1726
  */
1658
1727
  proxy<TReturn,
1659
1728
  A, B, C,
@@ -1668,6 +1737,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
1668
1737
  * @param context The object to which the context (this) of the function should be set.
1669
1738
  * @see {@link https://api.jquery.com/jQuery.proxy/}
1670
1739
  * @since 1.9
1740
+ * @deprecated 3.3 Use Function#bind.
1671
1741
  */
1672
1742
  proxy<TReturn,
1673
1743
  A, B,
@@ -1682,6 +1752,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
1682
1752
  * @param context The object to which the context (this) of the function should be set.
1683
1753
  * @see {@link https://api.jquery.com/jQuery.proxy/}
1684
1754
  * @since 1.9
1755
+ * @deprecated 3.3 Use Function#bind.
1685
1756
  */
1686
1757
  proxy<TReturn,
1687
1758
  A,
@@ -1696,6 +1767,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
1696
1767
  * @param context The object to which the context (this) of the function should be set.
1697
1768
  * @see {@link https://api.jquery.com/jQuery.proxy/}
1698
1769
  * @since 1.9
1770
+ * @deprecated 3.3 Use Function#bind.
1699
1771
  */
1700
1772
  proxy<TReturn,
1701
1773
  T, U, V, W, X, Y, Z>(fn: (t: T, u: U, v: V, w: W, x: X, y: Y, z: Z, ...args: any[]) => TReturn,
@@ -1715,6 +1787,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
1715
1787
  * @param additionalArguments Any number of arguments to be passed to the function referenced in the function argument.
1716
1788
  * @see {@link https://api.jquery.com/jQuery.proxy/}
1717
1789
  * @since 1.9
1790
+ * @deprecated 3.3 Use Function#bind.
1718
1791
  */
1719
1792
  proxy<TReturn>(fn: (...args: any[]) => TReturn,
1720
1793
  context: null | undefined,
@@ -1738,6 +1811,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
1738
1811
  * @see {@link https://api.jquery.com/jQuery.proxy/}
1739
1812
  * @since 1.4
1740
1813
  * @since 1.6
1814
+ * @deprecated 3.3 Use Function#bind.
1741
1815
  */
1742
1816
  proxy<TContext extends object,
1743
1817
  TReturn,
@@ -1752,6 +1826,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
1752
1826
  * @see {@link https://api.jquery.com/jQuery.proxy/}
1753
1827
  * @since 1.4
1754
1828
  * @since 1.6
1829
+ * @deprecated 3.3 Use Function#bind.
1755
1830
  */
1756
1831
  proxy<TContext extends object,
1757
1832
  TReturn,
@@ -1766,6 +1841,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
1766
1841
  * @see {@link https://api.jquery.com/jQuery.proxy/}
1767
1842
  * @since 1.4
1768
1843
  * @since 1.6
1844
+ * @deprecated 3.3 Use Function#bind.
1769
1845
  */
1770
1846
  proxy<TContext extends object,
1771
1847
  TReturn,
@@ -1780,6 +1856,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
1780
1856
  * @see {@link https://api.jquery.com/jQuery.proxy/}
1781
1857
  * @since 1.4
1782
1858
  * @since 1.6
1859
+ * @deprecated 3.3 Use Function#bind.
1783
1860
  */
1784
1861
  proxy<TContext extends object,
1785
1862
  TReturn,
@@ -1794,6 +1871,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
1794
1871
  * @see {@link https://api.jquery.com/jQuery.proxy/}
1795
1872
  * @since 1.4
1796
1873
  * @since 1.6
1874
+ * @deprecated 3.3 Use Function#bind.
1797
1875
  */
1798
1876
  proxy<TContext extends object,
1799
1877
  TReturn,
@@ -1808,6 +1886,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
1808
1886
  * @see {@link https://api.jquery.com/jQuery.proxy/}
1809
1887
  * @since 1.4
1810
1888
  * @since 1.6
1889
+ * @deprecated 3.3 Use Function#bind.
1811
1890
  */
1812
1891
  proxy<TContext extends object,
1813
1892
  TReturn,
@@ -1822,6 +1901,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
1822
1901
  * @see {@link https://api.jquery.com/jQuery.proxy/}
1823
1902
  * @since 1.4`
1824
1903
  * @since 1.6
1904
+ * @deprecated 3.3 Use Function#bind.
1825
1905
  */
1826
1906
  proxy<TContext extends object,
1827
1907
  TReturn,
@@ -1836,6 +1916,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
1836
1916
  * @see {@link https://api.jquery.com/jQuery.proxy/}
1837
1917
  * @since 1.4
1838
1918
  * @since 1.6
1919
+ * @deprecated 3.3 Use Function#bind.
1839
1920
  */
1840
1921
  proxy<TContext extends object,
1841
1922
  TReturn>(fn: () => TReturn,
@@ -1853,6 +1934,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
1853
1934
  * @see {@link https://api.jquery.com/jQuery.proxy/}
1854
1935
  * @since 1.4
1855
1936
  * @since 1.6
1937
+ * @deprecated 3.3 Use Function#bind.
1856
1938
  */
1857
1939
  proxy<TContext extends object,
1858
1940
  TReturn,
@@ -1869,6 +1951,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
1869
1951
  * @see {@link https://api.jquery.com/jQuery.proxy/}
1870
1952
  * @since 1.4
1871
1953
  * @since 1.6
1954
+ * @deprecated 3.3 Use Function#bind.
1872
1955
  */
1873
1956
  proxy<TContext extends object,
1874
1957
  TReturn,
@@ -1885,6 +1968,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
1885
1968
  * @see {@link https://api.jquery.com/jQuery.proxy/}
1886
1969
  * @since 1.4
1887
1970
  * @since 1.6
1971
+ * @deprecated 3.3 Use Function#bind.
1888
1972
  */
1889
1973
  proxy<TContext extends object,
1890
1974
  TReturn,
@@ -1901,6 +1985,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
1901
1985
  * @see {@link https://api.jquery.com/jQuery.proxy/}
1902
1986
  * @since 1.4
1903
1987
  * @since 1.6
1988
+ * @deprecated 3.3 Use Function#bind.
1904
1989
  */
1905
1990
  proxy<TContext extends object,
1906
1991
  TReturn,
@@ -1917,6 +2002,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
1917
2002
  * @see {@link https://api.jquery.com/jQuery.proxy/}
1918
2003
  * @since 1.4
1919
2004
  * @since 1.6
2005
+ * @deprecated 3.3 Use Function#bind.
1920
2006
  */
1921
2007
  proxy<TContext extends object,
1922
2008
  TReturn,
@@ -1933,6 +2019,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
1933
2019
  * @see {@link https://api.jquery.com/jQuery.proxy/}
1934
2020
  * @since 1.4
1935
2021
  * @since 1.6
2022
+ * @deprecated 3.3 Use Function#bind.
1936
2023
  */
1937
2024
  proxy<TContext extends object,
1938
2025
  TReturn,
@@ -1949,6 +2036,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
1949
2036
  * @see {@link https://api.jquery.com/jQuery.proxy/}
1950
2037
  * @since 1.4
1951
2038
  * @since 1.6
2039
+ * @deprecated 3.3 Use Function#bind.
1952
2040
  */
1953
2041
  proxy<TContext extends object,
1954
2042
  TReturn,
@@ -1965,6 +2053,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
1965
2053
  * @see {@link https://api.jquery.com/jQuery.proxy/}
1966
2054
  * @since 1.4
1967
2055
  * @since 1.6
2056
+ * @deprecated 3.3 Use Function#bind.
1968
2057
  */
1969
2058
  proxy<TContext extends object,
1970
2059
  TReturn,
@@ -1983,6 +2072,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
1983
2072
  * @see {@link https://api.jquery.com/jQuery.proxy/}
1984
2073
  * @since 1.4
1985
2074
  * @since 1.6
2075
+ * @deprecated 3.3 Use Function#bind.
1986
2076
  */
1987
2077
  proxy<TContext extends object,
1988
2078
  TReturn,
@@ -1999,6 +2089,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
1999
2089
  * @see {@link https://api.jquery.com/jQuery.proxy/}
2000
2090
  * @since 1.4
2001
2091
  * @since 1.6
2092
+ * @deprecated 3.3 Use Function#bind.
2002
2093
  */
2003
2094
  proxy<TContext extends object,
2004
2095
  TReturn,
@@ -2015,6 +2106,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
2015
2106
  * @see {@link https://api.jquery.com/jQuery.proxy/}
2016
2107
  * @since 1.4
2017
2108
  * @since 1.6
2109
+ * @deprecated 3.3 Use Function#bind.
2018
2110
  */
2019
2111
  proxy<TContext extends object,
2020
2112
  TReturn,
@@ -2031,6 +2123,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
2031
2123
  * @see {@link https://api.jquery.com/jQuery.proxy/}
2032
2124
  * @since 1.4
2033
2125
  * @since 1.6
2126
+ * @deprecated 3.3 Use Function#bind.
2034
2127
  */
2035
2128
  proxy<TContext extends object,
2036
2129
  TReturn,
@@ -2047,6 +2140,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
2047
2140
  * @see {@link https://api.jquery.com/jQuery.proxy/}
2048
2141
  * @since 1.4
2049
2142
  * @since 1.6
2143
+ * @deprecated 3.3 Use Function#bind.
2050
2144
  */
2051
2145
  proxy<TContext extends object,
2052
2146
  TReturn,
@@ -2063,6 +2157,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
2063
2157
  * @see {@link https://api.jquery.com/jQuery.proxy/}
2064
2158
  * @since 1.4
2065
2159
  * @since 1.6
2160
+ * @deprecated 3.3 Use Function#bind.
2066
2161
  */
2067
2162
  proxy<TContext extends object,
2068
2163
  TReturn,
@@ -2079,6 +2174,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
2079
2174
  * @see {@link https://api.jquery.com/jQuery.proxy/}
2080
2175
  * @since 1.4
2081
2176
  * @since 1.6
2177
+ * @deprecated 3.3 Use Function#bind.
2082
2178
  */
2083
2179
  proxy<TContext extends object,
2084
2180
  TReturn,
@@ -2095,6 +2191,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
2095
2191
  * @see {@link https://api.jquery.com/jQuery.proxy/}
2096
2192
  * @since 1.4
2097
2193
  * @since 1.6
2194
+ * @deprecated 3.3 Use Function#bind.
2098
2195
  */
2099
2196
  proxy<TContext extends object,
2100
2197
  TReturn,
@@ -2113,6 +2210,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
2113
2210
  * @see {@link https://api.jquery.com/jQuery.proxy/}
2114
2211
  * @since 1.4
2115
2212
  * @since 1.6
2213
+ * @deprecated 3.3 Use Function#bind.
2116
2214
  */
2117
2215
  proxy<TContext extends object,
2118
2216
  TReturn,
@@ -2129,6 +2227,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
2129
2227
  * @see {@link https://api.jquery.com/jQuery.proxy/}
2130
2228
  * @since 1.4
2131
2229
  * @since 1.6
2230
+ * @deprecated 3.3 Use Function#bind.
2132
2231
  */
2133
2232
  proxy<TContext extends object,
2134
2233
  TReturn,
@@ -2145,6 +2244,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
2145
2244
  * @see {@link https://api.jquery.com/jQuery.proxy/}
2146
2245
  * @since 1.4
2147
2246
  * @since 1.6
2247
+ * @deprecated 3.3 Use Function#bind.
2148
2248
  */
2149
2249
  proxy<TContext extends object,
2150
2250
  TReturn,
@@ -2161,6 +2261,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
2161
2261
  * @see {@link https://api.jquery.com/jQuery.proxy/}
2162
2262
  * @since 1.4
2163
2263
  * @since 1.6
2264
+ * @deprecated 3.3 Use Function#bind.
2164
2265
  */
2165
2266
  proxy<TContext extends object,
2166
2267
  TReturn,
@@ -2177,6 +2278,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
2177
2278
  * @see {@link https://api.jquery.com/jQuery.proxy/}
2178
2279
  * @since 1.4
2179
2280
  * @since 1.6
2281
+ * @deprecated 3.3 Use Function#bind.
2180
2282
  */
2181
2283
  proxy<TContext extends object,
2182
2284
  TReturn,
@@ -2193,6 +2295,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
2193
2295
  * @see {@link https://api.jquery.com/jQuery.proxy/}
2194
2296
  * @since 1.4
2195
2297
  * @since 1.6
2298
+ * @deprecated 3.3 Use Function#bind.
2196
2299
  */
2197
2300
  proxy<TContext extends object,
2198
2301
  TReturn,
@@ -2209,6 +2312,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
2209
2312
  * @see {@link https://api.jquery.com/jQuery.proxy/}
2210
2313
  * @since 1.4
2211
2314
  * @since 1.6
2315
+ * @deprecated 3.3 Use Function#bind.
2212
2316
  */
2213
2317
  proxy<TContext extends object,
2214
2318
  TReturn,
@@ -2225,6 +2329,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
2225
2329
  * @see {@link https://api.jquery.com/jQuery.proxy/}
2226
2330
  * @since 1.4
2227
2331
  * @since 1.6
2332
+ * @deprecated 3.3 Use Function#bind.
2228
2333
  */
2229
2334
  proxy<TContext extends object,
2230
2335
  TReturn,
@@ -2243,6 +2348,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
2243
2348
  * @see {@link https://api.jquery.com/jQuery.proxy/}
2244
2349
  * @since 1.4
2245
2350
  * @since 1.6
2351
+ * @deprecated 3.3 Use Function#bind.
2246
2352
  */
2247
2353
  proxy<TContext extends object,
2248
2354
  TReturn,
@@ -2259,6 +2365,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
2259
2365
  * @see {@link https://api.jquery.com/jQuery.proxy/}
2260
2366
  * @since 1.4
2261
2367
  * @since 1.6
2368
+ * @deprecated 3.3 Use Function#bind.
2262
2369
  */
2263
2370
  proxy<TContext extends object,
2264
2371
  TReturn,
@@ -2275,6 +2382,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
2275
2382
  * @see {@link https://api.jquery.com/jQuery.proxy/}
2276
2383
  * @since 1.4
2277
2384
  * @since 1.6
2385
+ * @deprecated 3.3 Use Function#bind.
2278
2386
  */
2279
2387
  proxy<TContext extends object,
2280
2388
  TReturn,
@@ -2291,6 +2399,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
2291
2399
  * @see {@link https://api.jquery.com/jQuery.proxy/}
2292
2400
  * @since 1.4
2293
2401
  * @since 1.6
2402
+ * @deprecated 3.3 Use Function#bind.
2294
2403
  */
2295
2404
  proxy<TContext extends object,
2296
2405
  TReturn,
@@ -2307,6 +2416,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
2307
2416
  * @see {@link https://api.jquery.com/jQuery.proxy/}
2308
2417
  * @since 1.4
2309
2418
  * @since 1.6
2419
+ * @deprecated 3.3 Use Function#bind.
2310
2420
  */
2311
2421
  proxy<TContext extends object,
2312
2422
  TReturn,
@@ -2323,6 +2433,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
2323
2433
  * @see {@link https://api.jquery.com/jQuery.proxy/}
2324
2434
  * @since 1.4
2325
2435
  * @since 1.6
2436
+ * @deprecated 3.3 Use Function#bind.
2326
2437
  */
2327
2438
  proxy<TContext extends object,
2328
2439
  TReturn,
@@ -2339,6 +2450,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
2339
2450
  * @see {@link https://api.jquery.com/jQuery.proxy/}
2340
2451
  * @since 1.4
2341
2452
  * @since 1.6
2453
+ * @deprecated 3.3 Use Function#bind.
2342
2454
  */
2343
2455
  proxy<TContext extends object,
2344
2456
  TReturn,
@@ -2355,6 +2467,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
2355
2467
  * @see {@link https://api.jquery.com/jQuery.proxy/}
2356
2468
  * @since 1.4
2357
2469
  * @since 1.6
2470
+ * @deprecated 3.3 Use Function#bind.
2358
2471
  */
2359
2472
  proxy<TContext extends object,
2360
2473
  TReturn,
@@ -2373,6 +2486,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
2373
2486
  * @see {@link https://api.jquery.com/jQuery.proxy/}
2374
2487
  * @since 1.4
2375
2488
  * @since 1.6
2489
+ * @deprecated 3.3 Use Function#bind.
2376
2490
  */
2377
2491
  proxy<TContext extends object,
2378
2492
  TReturn,
@@ -2389,6 +2503,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
2389
2503
  * @see {@link https://api.jquery.com/jQuery.proxy/}
2390
2504
  * @since 1.4
2391
2505
  * @since 1.6
2506
+ * @deprecated 3.3 Use Function#bind.
2392
2507
  */
2393
2508
  proxy<TContext extends object,
2394
2509
  TReturn,
@@ -2405,6 +2520,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
2405
2520
  * @see {@link https://api.jquery.com/jQuery.proxy/}
2406
2521
  * @since 1.4
2407
2522
  * @since 1.6
2523
+ * @deprecated 3.3 Use Function#bind.
2408
2524
  */
2409
2525
  proxy<TContext extends object,
2410
2526
  TReturn,
@@ -2421,6 +2537,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
2421
2537
  * @see {@link https://api.jquery.com/jQuery.proxy/}
2422
2538
  * @since 1.4
2423
2539
  * @since 1.6
2540
+ * @deprecated 3.3 Use Function#bind.
2424
2541
  */
2425
2542
  proxy<TContext extends object,
2426
2543
  TReturn,
@@ -2437,6 +2554,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
2437
2554
  * @see {@link https://api.jquery.com/jQuery.proxy/}
2438
2555
  * @since 1.4
2439
2556
  * @since 1.6
2557
+ * @deprecated 3.3 Use Function#bind.
2440
2558
  */
2441
2559
  proxy<TContext extends object,
2442
2560
  TReturn,
@@ -2453,6 +2571,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
2453
2571
  * @see {@link https://api.jquery.com/jQuery.proxy/}
2454
2572
  * @since 1.4
2455
2573
  * @since 1.6
2574
+ * @deprecated 3.3 Use Function#bind.
2456
2575
  */
2457
2576
  proxy<TContext extends object,
2458
2577
  TReturn,
@@ -2469,6 +2588,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
2469
2588
  * @see {@link https://api.jquery.com/jQuery.proxy/}
2470
2589
  * @since 1.4
2471
2590
  * @since 1.6
2591
+ * @deprecated 3.3 Use Function#bind.
2472
2592
  */
2473
2593
  proxy<TContext extends object,
2474
2594
  TReturn,
@@ -2485,6 +2605,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
2485
2605
  * @see {@link https://api.jquery.com/jQuery.proxy/}
2486
2606
  * @since 1.4
2487
2607
  * @since 1.6
2608
+ * @deprecated 3.3 Use Function#bind.
2488
2609
  */
2489
2610
  proxy<TContext extends object,
2490
2611
  TReturn,
@@ -2503,6 +2624,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
2503
2624
  * @see {@link https://api.jquery.com/jQuery.proxy/}
2504
2625
  * @since 1.4
2505
2626
  * @since 1.6
2627
+ * @deprecated 3.3 Use Function#bind.
2506
2628
  */
2507
2629
  proxy<TContext extends object,
2508
2630
  TReturn,
@@ -2519,6 +2641,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
2519
2641
  * @see {@link https://api.jquery.com/jQuery.proxy/}
2520
2642
  * @since 1.4
2521
2643
  * @since 1.6
2644
+ * @deprecated 3.3 Use Function#bind.
2522
2645
  */
2523
2646
  proxy<TContext extends object,
2524
2647
  TReturn,
@@ -2535,6 +2658,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
2535
2658
  * @see {@link https://api.jquery.com/jQuery.proxy/}
2536
2659
  * @since 1.4
2537
2660
  * @since 1.6
2661
+ * @deprecated 3.3 Use Function#bind.
2538
2662
  */
2539
2663
  proxy<TContext extends object,
2540
2664
  TReturn,
@@ -2551,6 +2675,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
2551
2675
  * @see {@link https://api.jquery.com/jQuery.proxy/}
2552
2676
  * @since 1.4
2553
2677
  * @since 1.6
2678
+ * @deprecated 3.3 Use Function#bind.
2554
2679
  */
2555
2680
  proxy<TContext extends object,
2556
2681
  TReturn,
@@ -2567,6 +2692,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
2567
2692
  * @see {@link https://api.jquery.com/jQuery.proxy/}
2568
2693
  * @since 1.4
2569
2694
  * @since 1.6
2695
+ * @deprecated 3.3 Use Function#bind.
2570
2696
  */
2571
2697
  proxy<TContext extends object,
2572
2698
  TReturn,
@@ -2583,6 +2709,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
2583
2709
  * @see {@link https://api.jquery.com/jQuery.proxy/}
2584
2710
  * @since 1.4
2585
2711
  * @since 1.6
2712
+ * @deprecated 3.3 Use Function#bind.
2586
2713
  */
2587
2714
  proxy<TContext extends object,
2588
2715
  TReturn,
@@ -2599,6 +2726,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
2599
2726
  * @see {@link https://api.jquery.com/jQuery.proxy/}
2600
2727
  * @since 1.4
2601
2728
  * @since 1.6
2729
+ * @deprecated 3.3 Use Function#bind.
2602
2730
  */
2603
2731
  proxy<TContext extends object,
2604
2732
  TReturn,
@@ -2615,6 +2743,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
2615
2743
  * @see {@link https://api.jquery.com/jQuery.proxy/}
2616
2744
  * @since 1.4
2617
2745
  * @since 1.6
2746
+ * @deprecated 3.3 Use Function#bind.
2618
2747
  */
2619
2748
  proxy<TContext extends object,
2620
2749
  TReturn,
@@ -2633,6 +2762,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
2633
2762
  * @see {@link https://api.jquery.com/jQuery.proxy/}
2634
2763
  * @since 1.4
2635
2764
  * @since 1.6
2765
+ * @deprecated 3.3 Use Function#bind.
2636
2766
  */
2637
2767
  proxy<TContext extends object,
2638
2768
  TReturn,
@@ -2649,6 +2779,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
2649
2779
  * @see {@link https://api.jquery.com/jQuery.proxy/}
2650
2780
  * @since 1.4
2651
2781
  * @since 1.6
2782
+ * @deprecated 3.3 Use Function#bind.
2652
2783
  */
2653
2784
  proxy<TContext extends object,
2654
2785
  TReturn,
@@ -2665,6 +2796,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
2665
2796
  * @see {@link https://api.jquery.com/jQuery.proxy/}
2666
2797
  * @since 1.4
2667
2798
  * @since 1.6
2799
+ * @deprecated 3.3 Use Function#bind.
2668
2800
  */
2669
2801
  proxy<TContext extends object,
2670
2802
  TReturn,
@@ -2681,6 +2813,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
2681
2813
  * @see {@link https://api.jquery.com/jQuery.proxy/}
2682
2814
  * @since 1.4
2683
2815
  * @since 1.6
2816
+ * @deprecated 3.3 Use Function#bind.
2684
2817
  */
2685
2818
  proxy<TContext extends object,
2686
2819
  TReturn,
@@ -2697,6 +2830,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
2697
2830
  * @see {@link https://api.jquery.com/jQuery.proxy/}
2698
2831
  * @since 1.4
2699
2832
  * @since 1.6
2833
+ * @deprecated 3.3 Use Function#bind.
2700
2834
  */
2701
2835
  proxy<TContext extends object,
2702
2836
  TReturn,
@@ -2713,6 +2847,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
2713
2847
  * @see {@link https://api.jquery.com/jQuery.proxy/}
2714
2848
  * @since 1.4
2715
2849
  * @since 1.6
2850
+ * @deprecated 3.3 Use Function#bind.
2716
2851
  */
2717
2852
  proxy<TContext extends object,
2718
2853
  TReturn,
@@ -2729,6 +2864,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
2729
2864
  * @see {@link https://api.jquery.com/jQuery.proxy/}
2730
2865
  * @since 1.4
2731
2866
  * @since 1.6
2867
+ * @deprecated 3.3 Use Function#bind.
2732
2868
  */
2733
2869
  proxy<TContext extends object,
2734
2870
  TReturn,
@@ -2745,6 +2881,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
2745
2881
  * @see {@link https://api.jquery.com/jQuery.proxy/}
2746
2882
  * @since 1.4
2747
2883
  * @since 1.6
2884
+ * @deprecated 3.3 Use Function#bind.
2748
2885
  */
2749
2886
  proxy<TContext extends object,
2750
2887
  TReturn,
@@ -2766,6 +2903,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
2766
2903
  * @see {@link https://api.jquery.com/jQuery.proxy/}
2767
2904
  * @since 1.4
2768
2905
  * @since 1.6
2906
+ * @deprecated 3.3 Use Function#bind.
2769
2907
  */
2770
2908
  proxy<TContext extends object,
2771
2909
  TReturn>(fn: (...args: any[]) => TReturn,
@@ -2787,6 +2925,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
2787
2925
  * @see {@link https://api.jquery.com/jQuery.proxy/}
2788
2926
  * @since 1.4
2789
2927
  * @since 1.6
2928
+ * @deprecated 3.3 Use Function#bind.
2790
2929
  */
2791
2930
  proxy<TContext extends object>(context: TContext,
2792
2931
  name: keyof TContext,
@@ -2870,6 +3009,7 @@ interface JQueryStatic<TElement extends Node = HTMLElement> {
2870
3009
  * @param obj Object to get the internal JavaScript [[Class]] of.
2871
3010
  * @see {@link https://api.jquery.com/jQuery.type/}
2872
3011
  * @since 1.4.3
3012
+ * @deprecated 3.3
2873
3013
  */
2874
3014
  type(obj: any): 'array' | 'boolean' | 'date' | 'error' | 'function' | 'null' | 'number' | 'object' | 'regexp' | 'string' | 'symbol' | 'undefined';
2875
3015
  /**
@@ -3007,14 +3147,16 @@ interface JQuery<TElement extends Node = HTMLElement> extends Iterable<TElement>
3007
3147
  * Adds the specified class(es) to each element in the set of matched elements.
3008
3148
  *
3009
3149
  * @param className One or more space-separated classes to be added to the class attribute of each matched element.
3150
+ * An array of classes to be added to the class attribute of each matched element.
3010
3151
  * A function returning one or more space-separated class names to be added to the existing class
3011
3152
  * name(s). Receives the index position of the element in the set and the existing class name(s) as
3012
3153
  * arguments. Within the function, this refers to the current element in the set.
3013
3154
  * @see {@link https://api.jquery.com/addClass/}
3014
3155
  * @since 1.0
3015
3156
  * @since 1.4
3157
+ * @since 3.3
3016
3158
  */
3017
- addClass(className: string | ((this: TElement, index: number, currentClassName: string) => string)): this;
3159
+ addClass(className: JQuery.TypeOrArray<string> | ((this: TElement, index: number, currentClassName: string) => string)): this;
3018
3160
  /**
3019
3161
  * Insert content, specified by the parameter, after each element in the set of matched elements.
3020
3162
  *
@@ -3255,6 +3397,7 @@ interface JQuery<TElement extends Node = HTMLElement> extends Iterable<TElement>
3255
3397
  * @param handler A function to execute each time the event is triggered.
3256
3398
  * @see {@link https://api.jquery.com/blur/}
3257
3399
  * @since 1.4.3
3400
+ * @deprecated 3.3
3258
3401
  */
3259
3402
  blur<TData>(eventData: TData,
3260
3403
  handler: JQuery.EventHandler<TElement, TData> | JQuery.EventHandlerBase<any, JQuery.Event<TElement, TData>>): this;
@@ -3264,6 +3407,7 @@ interface JQuery<TElement extends Node = HTMLElement> extends Iterable<TElement>
3264
3407
  * @param handler A function to execute each time the event is triggered.
3265
3408
  * @see {@link https://api.jquery.com/blur/}
3266
3409
  * @since 1.0
3410
+ * @deprecated 3.3
3267
3411
  */
3268
3412
  blur(handler?: JQuery.EventHandler<TElement> | JQuery.EventHandlerBase<any, JQuery.Event<TElement>> | false): this;
3269
3413
  /**
@@ -3273,6 +3417,7 @@ interface JQuery<TElement extends Node = HTMLElement> extends Iterable<TElement>
3273
3417
  * @param handler A function to execute each time the event is triggered.
3274
3418
  * @see {@link https://api.jquery.com/change/}
3275
3419
  * @since 1.4.3
3420
+ * @deprecated 3.3
3276
3421
  */
3277
3422
  change<TData>(eventData: TData,
3278
3423
  handler: JQuery.EventHandler<TElement, TData> | JQuery.EventHandlerBase<any, JQuery.Event<TElement, TData>>): this;
@@ -3282,6 +3427,7 @@ interface JQuery<TElement extends Node = HTMLElement> extends Iterable<TElement>
3282
3427
  * @param handler A function to execute each time the event is triggered.
3283
3428
  * @see {@link https://api.jquery.com/change/}
3284
3429
  * @since 1.0
3430
+ * @deprecated 3.3
3285
3431
  */
3286
3432
  change(handler?: JQuery.EventHandler<TElement> | JQuery.EventHandlerBase<any, JQuery.Event<TElement>> | false): this;
3287
3433
  /**
@@ -3307,6 +3453,7 @@ interface JQuery<TElement extends Node = HTMLElement> extends Iterable<TElement>
3307
3453
  * @param handler A function to execute each time the event is triggered.
3308
3454
  * @see {@link https://api.jquery.com/click/}
3309
3455
  * @since 1.4.3
3456
+ * @deprecated 3.3
3310
3457
  */
3311
3458
  click<TData>(eventData: TData,
3312
3459
  handler: JQuery.EventHandler<TElement, TData> | JQuery.EventHandlerBase<any, JQuery.Event<TElement, TData>>): this;
@@ -3316,6 +3463,7 @@ interface JQuery<TElement extends Node = HTMLElement> extends Iterable<TElement>
3316
3463
  * @param handler A function to execute each time the event is triggered.
3317
3464
  * @see {@link https://api.jquery.com/click/}
3318
3465
  * @since 1.0
3466
+ * @deprecated 3.3
3319
3467
  */
3320
3468
  click(handler?: JQuery.EventHandler<TElement> | JQuery.EventHandlerBase<any, JQuery.Event<TElement>> | false): this;
3321
3469
  /**
@@ -3367,6 +3515,7 @@ interface JQuery<TElement extends Node = HTMLElement> extends Iterable<TElement>
3367
3515
  * @param handler A function to execute each time the event is triggered.
3368
3516
  * @see {@link https://api.jquery.com/contextmenu/}
3369
3517
  * @since 1.4.3
3518
+ * @deprecated 3.3
3370
3519
  */
3371
3520
  contextmenu<TData>(eventData: TData,
3372
3521
  handler: JQuery.EventHandler<TElement, TData> | JQuery.EventHandlerBase<any, JQuery.Event<TElement, TData>>): this;
@@ -3376,6 +3525,7 @@ interface JQuery<TElement extends Node = HTMLElement> extends Iterable<TElement>
3376
3525
  * @param handler A function to execute each time the event is triggered.
3377
3526
  * @see {@link https://api.jquery.com/contextmenu/}
3378
3527
  * @since 1.0
3528
+ * @deprecated 3.3
3379
3529
  */
3380
3530
  contextmenu(handler?: JQuery.EventHandler<TElement> | JQuery.EventHandlerBase<any, JQuery.Event<TElement>> | false): this;
3381
3531
  /**
@@ -3466,6 +3616,7 @@ interface JQuery<TElement extends Node = HTMLElement> extends Iterable<TElement>
3466
3616
  * @param handler A function to execute each time the event is triggered.
3467
3617
  * @see {@link https://api.jquery.com/dblclick/}
3468
3618
  * @since 1.4.3
3619
+ * @deprecated 3.3
3469
3620
  */
3470
3621
  dblclick<TData>(eventData: TData,
3471
3622
  handler: JQuery.EventHandler<TElement, TData> | JQuery.EventHandlerBase<any, JQuery.Event<TElement, TData>>): this;
@@ -3475,6 +3626,7 @@ interface JQuery<TElement extends Node = HTMLElement> extends Iterable<TElement>
3475
3626
  * @param handler A function to execute each time the event is triggered.
3476
3627
  * @see {@link https://api.jquery.com/dblclick/}
3477
3628
  * @since 1.0
3629
+ * @deprecated 3.3
3478
3630
  */
3479
3631
  dblclick(handler?: JQuery.EventHandler<TElement> | JQuery.EventHandlerBase<any, JQuery.Event<TElement>> | false): this;
3480
3632
  /**
@@ -3753,6 +3905,7 @@ interface JQuery<TElement extends Node = HTMLElement> extends Iterable<TElement>
3753
3905
  * @param handler A function to execute each time the event is triggered.
3754
3906
  * @see {@link https://api.jquery.com/focus/}
3755
3907
  * @since 1.4.3
3908
+ * @deprecated 3.3
3756
3909
  */
3757
3910
  focus<TData>(eventData: TData,
3758
3911
  handler: JQuery.EventHandler<TElement, TData> | JQuery.EventHandlerBase<any, JQuery.Event<TElement, TData>>): this;
@@ -3762,6 +3915,7 @@ interface JQuery<TElement extends Node = HTMLElement> extends Iterable<TElement>
3762
3915
  * @param handler A function to execute each time the event is triggered.
3763
3916
  * @see {@link https://api.jquery.com/focus/}
3764
3917
  * @since 1.0
3918
+ * @deprecated 3.3
3765
3919
  */
3766
3920
  focus(handler?: JQuery.EventHandler<TElement> | JQuery.EventHandlerBase<any, JQuery.Event<TElement>> | false): this;
3767
3921
  /**
@@ -3771,6 +3925,7 @@ interface JQuery<TElement extends Node = HTMLElement> extends Iterable<TElement>
3771
3925
  * @param handler A function to execute each time the event is triggered.
3772
3926
  * @see {@link https://api.jquery.com/focusin/}
3773
3927
  * @since 1.4.3
3928
+ * @deprecated 3.3
3774
3929
  */
3775
3930
  focusin<TData>(eventData: TData,
3776
3931
  handler: JQuery.EventHandler<TElement, TData> | JQuery.EventHandlerBase<any, JQuery.Event<TElement, TData>>): this;
@@ -3780,6 +3935,7 @@ interface JQuery<TElement extends Node = HTMLElement> extends Iterable<TElement>
3780
3935
  * @param handler A function to execute each time the event is triggered.
3781
3936
  * @see {@link https://api.jquery.com/focusin/}
3782
3937
  * @since 1.4
3938
+ * @deprecated 3.3
3783
3939
  */
3784
3940
  focusin(handler?: JQuery.EventHandler<TElement> | JQuery.EventHandlerBase<any, JQuery.Event<TElement>> | false): this;
3785
3941
  /**
@@ -3789,6 +3945,7 @@ interface JQuery<TElement extends Node = HTMLElement> extends Iterable<TElement>
3789
3945
  * @param handler A function to execute each time the event is triggered.
3790
3946
  * @see {@link https://api.jquery.com/focusout/}
3791
3947
  * @since 1.4.3
3948
+ * @deprecated 3.3
3792
3949
  */
3793
3950
  focusout<TData>(eventData: TData,
3794
3951
  handler: JQuery.EventHandler<TElement, TData> | JQuery.EventHandlerBase<any, JQuery.Event<TElement, TData>>): this;
@@ -3798,6 +3955,7 @@ interface JQuery<TElement extends Node = HTMLElement> extends Iterable<TElement>
3798
3955
  * @param handler A function to execute each time the event is triggered.
3799
3956
  * @see {@link https://api.jquery.com/focusout/}
3800
3957
  * @since 1.4
3958
+ * @deprecated 3.3
3801
3959
  */
3802
3960
  focusout(handler?: JQuery.EventHandler<TElement> | JQuery.EventHandlerBase<any, JQuery.Event<TElement>> | false): this;
3803
3961
  /**
@@ -4004,6 +4162,7 @@ interface JQuery<TElement extends Node = HTMLElement> extends Iterable<TElement>
4004
4162
  * @param handler A function to execute each time the event is triggered.
4005
4163
  * @see {@link https://api.jquery.com/keydown/}
4006
4164
  * @since 1.4.3
4165
+ * @deprecated 3.3
4007
4166
  */
4008
4167
  keydown<TData>(eventData: TData,
4009
4168
  handler: JQuery.EventHandler<TElement, TData> | JQuery.EventHandlerBase<any, JQuery.Event<TElement, TData>>): this;
@@ -4013,6 +4172,7 @@ interface JQuery<TElement extends Node = HTMLElement> extends Iterable<TElement>
4013
4172
  * @param handler A function to execute each time the event is triggered.
4014
4173
  * @see {@link https://api.jquery.com/keydown/}
4015
4174
  * @since 1.0
4175
+ * @deprecated 3.3
4016
4176
  */
4017
4177
  keydown(handler?: JQuery.EventHandler<TElement> | JQuery.EventHandlerBase<any, JQuery.Event<TElement>> | false): this;
4018
4178
  /**
@@ -4022,6 +4182,7 @@ interface JQuery<TElement extends Node = HTMLElement> extends Iterable<TElement>
4022
4182
  * @param handler A function to execute each time the event is triggered.
4023
4183
  * @see {@link https://api.jquery.com/keypress/}
4024
4184
  * @since 1.4.3
4185
+ * @deprecated 3.3
4025
4186
  */
4026
4187
  keypress<TData>(eventData: TData,
4027
4188
  handler: JQuery.EventHandler<TElement, TData> | JQuery.EventHandlerBase<any, JQuery.Event<TElement, TData>>): this;
@@ -4031,6 +4192,7 @@ interface JQuery<TElement extends Node = HTMLElement> extends Iterable<TElement>
4031
4192
  * @param handler A function to execute each time the event is triggered.
4032
4193
  * @see {@link https://api.jquery.com/keypress/}
4033
4194
  * @since 1.0
4195
+ * @deprecated 3.3
4034
4196
  */
4035
4197
  keypress(handler?: JQuery.EventHandler<TElement> | JQuery.EventHandlerBase<any, JQuery.Event<TElement>> | false): this;
4036
4198
  /**
@@ -4040,6 +4202,7 @@ interface JQuery<TElement extends Node = HTMLElement> extends Iterable<TElement>
4040
4202
  * @param handler A function to execute each time the event is triggered.
4041
4203
  * @see {@link https://api.jquery.com/keyup/}
4042
4204
  * @since 1.4.3
4205
+ * @deprecated 3.3
4043
4206
  */
4044
4207
  keyup<TData>(eventData: TData,
4045
4208
  handler: JQuery.EventHandler<TElement, TData> | JQuery.EventHandlerBase<any, JQuery.Event<TElement, TData>>): this;
@@ -4049,6 +4212,7 @@ interface JQuery<TElement extends Node = HTMLElement> extends Iterable<TElement>
4049
4212
  * @param handler A function to execute each time the event is triggered.
4050
4213
  * @see {@link https://api.jquery.com/keyup/}
4051
4214
  * @since 1.0
4215
+ * @deprecated 3.3
4052
4216
  */
4053
4217
  keyup(handler?: JQuery.EventHandler<TElement> | JQuery.EventHandlerBase<any, JQuery.Event<TElement>> | false): this;
4054
4218
  /**
@@ -4097,6 +4261,7 @@ interface JQuery<TElement extends Node = HTMLElement> extends Iterable<TElement>
4097
4261
  * @param handler A function to execute each time the event is triggered.
4098
4262
  * @see {@link https://api.jquery.com/mousedown/}
4099
4263
  * @since 1.4.3
4264
+ * @deprecated 3.3
4100
4265
  */
4101
4266
  mousedown<TData>(eventData: TData,
4102
4267
  handler: JQuery.EventHandler<TElement, TData> | JQuery.EventHandlerBase<any, JQuery.Event<TElement, TData>>): this;
@@ -4106,6 +4271,7 @@ interface JQuery<TElement extends Node = HTMLElement> extends Iterable<TElement>
4106
4271
  * @param handler A function to execute each time the event is triggered.
4107
4272
  * @see {@link https://api.jquery.com/mousedown/}
4108
4273
  * @since 1.0
4274
+ * @deprecated 3.3
4109
4275
  */
4110
4276
  mousedown(handler?: JQuery.EventHandler<TElement> | JQuery.EventHandlerBase<any, JQuery.Event<TElement>> | false): this;
4111
4277
  /**
@@ -4115,6 +4281,7 @@ interface JQuery<TElement extends Node = HTMLElement> extends Iterable<TElement>
4115
4281
  * @param handler A function to execute each time the event is triggered.
4116
4282
  * @see {@link https://api.jquery.com/mouseenter/}
4117
4283
  * @since 1.4.3
4284
+ * @deprecated 3.3
4118
4285
  */
4119
4286
  mouseenter<TData>(eventData: TData,
4120
4287
  handler: JQuery.EventHandler<TElement, TData> | JQuery.EventHandlerBase<any, JQuery.Event<TElement, TData>>): this;
@@ -4124,6 +4291,7 @@ interface JQuery<TElement extends Node = HTMLElement> extends Iterable<TElement>
4124
4291
  * @param handler A function to execute each time the event is triggered.
4125
4292
  * @see {@link https://api.jquery.com/mouseenter/}
4126
4293
  * @since 1.0
4294
+ * @deprecated 3.3
4127
4295
  */
4128
4296
  mouseenter(handler?: JQuery.EventHandler<TElement> | JQuery.EventHandlerBase<any, JQuery.Event<TElement>> | false): this;
4129
4297
  /**
@@ -4133,6 +4301,7 @@ interface JQuery<TElement extends Node = HTMLElement> extends Iterable<TElement>
4133
4301
  * @param handler A function to execute each time the event is triggered.
4134
4302
  * @see {@link https://api.jquery.com/mouseleave/}
4135
4303
  * @since 1.4.3
4304
+ * @deprecated 3.3
4136
4305
  */
4137
4306
  mouseleave<TData>(eventData: TData,
4138
4307
  handler: JQuery.EventHandler<TElement, TData> | JQuery.EventHandlerBase<any, JQuery.Event<TElement, TData>>): this;
@@ -4142,6 +4311,7 @@ interface JQuery<TElement extends Node = HTMLElement> extends Iterable<TElement>
4142
4311
  * @param handler A function to execute each time the event is triggered.
4143
4312
  * @see {@link https://api.jquery.com/mouseleave/}
4144
4313
  * @since 1.0
4314
+ * @deprecated 3.3
4145
4315
  */
4146
4316
  mouseleave(handler?: JQuery.EventHandler<TElement> | JQuery.EventHandlerBase<any, JQuery.Event<TElement>> | false): this;
4147
4317
  /**
@@ -4151,6 +4321,7 @@ interface JQuery<TElement extends Node = HTMLElement> extends Iterable<TElement>
4151
4321
  * @param handler A function to execute each time the event is triggered.
4152
4322
  * @see {@link https://api.jquery.com/mousemove/}
4153
4323
  * @since 1.4.3
4324
+ * @deprecated 3.3
4154
4325
  */
4155
4326
  mousemove<TData>(eventData: TData,
4156
4327
  handler: JQuery.EventHandler<TElement, TData> | JQuery.EventHandlerBase<any, JQuery.Event<TElement, TData>>): this;
@@ -4160,6 +4331,7 @@ interface JQuery<TElement extends Node = HTMLElement> extends Iterable<TElement>
4160
4331
  * @param handler A function to execute each time the event is triggered.
4161
4332
  * @see {@link https://api.jquery.com/mousemove/}
4162
4333
  * @since 1.0
4334
+ * @deprecated 3.3
4163
4335
  */
4164
4336
  mousemove(handler?: JQuery.EventHandler<TElement> | JQuery.EventHandlerBase<any, JQuery.Event<TElement>> | false): this;
4165
4337
  /**
@@ -4169,6 +4341,7 @@ interface JQuery<TElement extends Node = HTMLElement> extends Iterable<TElement>
4169
4341
  * @param handler A function to execute each time the event is triggered.
4170
4342
  * @see {@link https://api.jquery.com/mouseout/}
4171
4343
  * @since 1.4.3
4344
+ * @deprecated 3.3
4172
4345
  */
4173
4346
  mouseout<TData>(eventData: TData,
4174
4347
  handler: JQuery.EventHandler<TElement, TData> | JQuery.EventHandlerBase<any, JQuery.Event<TElement, TData>>): this;
@@ -4178,6 +4351,7 @@ interface JQuery<TElement extends Node = HTMLElement> extends Iterable<TElement>
4178
4351
  * @param handler A function to execute each time the event is triggered.
4179
4352
  * @see {@link https://api.jquery.com/mouseout/}
4180
4353
  * @since 1.0
4354
+ * @deprecated 3.3
4181
4355
  */
4182
4356
  mouseout(handler?: JQuery.EventHandler<TElement> | JQuery.EventHandlerBase<any, JQuery.Event<TElement>> | false): this;
4183
4357
  /**
@@ -4187,6 +4361,7 @@ interface JQuery<TElement extends Node = HTMLElement> extends Iterable<TElement>
4187
4361
  * @param handler A function to execute each time the event is triggered.
4188
4362
  * @see {@link https://api.jquery.com/mouseover/}
4189
4363
  * @since 1.4.3
4364
+ * @deprecated 3.3
4190
4365
  */
4191
4366
  mouseover<TData>(eventData: TData,
4192
4367
  handler: JQuery.EventHandler<TElement, TData> | JQuery.EventHandlerBase<any, JQuery.Event<TElement, TData>>): this;
@@ -4196,6 +4371,7 @@ interface JQuery<TElement extends Node = HTMLElement> extends Iterable<TElement>
4196
4371
  * @param handler A function to execute each time the event is triggered.
4197
4372
  * @see {@link https://api.jquery.com/mouseover/}
4198
4373
  * @since 1.0
4374
+ * @deprecated 3.3
4199
4375
  */
4200
4376
  mouseover(handler?: JQuery.EventHandler<TElement> | JQuery.EventHandlerBase<any, JQuery.Event<TElement>> | false): this;
4201
4377
  /**
@@ -4205,6 +4381,7 @@ interface JQuery<TElement extends Node = HTMLElement> extends Iterable<TElement>
4205
4381
  * @param handler A function to execute each time the event is triggered.
4206
4382
  * @see {@link https://api.jquery.com/mouseup/}
4207
4383
  * @since 1.4.3
4384
+ * @deprecated 3.3
4208
4385
  */
4209
4386
  mouseup<TData>(eventData: TData,
4210
4387
  handler: JQuery.EventHandler<TElement, TData> | JQuery.EventHandlerBase<any, JQuery.Event<TElement, TData>>): this;
@@ -4214,6 +4391,7 @@ interface JQuery<TElement extends Node = HTMLElement> extends Iterable<TElement>
4214
4391
  * @param handler A function to execute each time the event is triggered.
4215
4392
  * @see {@link https://api.jquery.com/mouseup/}
4216
4393
  * @since 1.0
4394
+ * @deprecated 3.3
4217
4395
  */
4218
4396
  mouseup(handler?: JQuery.EventHandler<TElement> | JQuery.EventHandlerBase<any, JQuery.Event<TElement>> | false): this;
4219
4397
  /**
@@ -4788,13 +4966,15 @@ interface JQuery<TElement extends Node = HTMLElement> extends Iterable<TElement>
4788
4966
  * Remove a single class, multiple classes, or all classes from each element in the set of matched elements.
4789
4967
  *
4790
4968
  * @param className One or more space-separated classes to be removed from the class attribute of each matched element.
4969
+ * An array of classes to be removed from the class attribute of each matched element.
4791
4970
  * A function returning one or more space-separated class names to be removed. Receives the index
4792
4971
  * position of the element in the set and the old class value as arguments.
4793
4972
  * @see {@link https://api.jquery.com/removeClass/}
4794
4973
  * @since 1.0
4795
4974
  * @since 1.4
4975
+ * @since 3.3
4796
4976
  */
4797
- removeClass(className?: string | ((this: TElement, index: number, className: string) => string)): this;
4977
+ removeClass(className?: JQuery.TypeOrArray<string> | ((this: TElement, index: number, className: string) => string)): this;
4798
4978
  /**
4799
4979
  * Remove a previously-stored piece of data.
4800
4980
  *
@@ -4839,6 +5019,7 @@ interface JQuery<TElement extends Node = HTMLElement> extends Iterable<TElement>
4839
5019
  * @param handler A function to execute each time the event is triggered.
4840
5020
  * @see {@link https://api.jquery.com/resize/}
4841
5021
  * @since 1.4.3
5022
+ * @deprecated 3.3
4842
5023
  */
4843
5024
  resize<TData>(eventData: TData,
4844
5025
  handler: JQuery.EventHandler<TElement, TData> | JQuery.EventHandlerBase<any, JQuery.Event<TElement, TData>>): this;
@@ -4848,6 +5029,7 @@ interface JQuery<TElement extends Node = HTMLElement> extends Iterable<TElement>
4848
5029
  * @param handler A function to execute each time the event is triggered.
4849
5030
  * @see {@link https://api.jquery.com/resize/}
4850
5031
  * @since 1.0
5032
+ * @deprecated 3.3
4851
5033
  */
4852
5034
  resize(handler?: JQuery.EventHandler<TElement> | JQuery.EventHandlerBase<any, JQuery.Event<TElement>> | false): this;
4853
5035
  /**
@@ -4857,6 +5039,7 @@ interface JQuery<TElement extends Node = HTMLElement> extends Iterable<TElement>
4857
5039
  * @param handler A function to execute each time the event is triggered.
4858
5040
  * @see {@link https://api.jquery.com/scroll/}
4859
5041
  * @since 1.4.3
5042
+ * @deprecated 3.3
4860
5043
  */
4861
5044
  scroll<TData>(eventData: TData,
4862
5045
  handler: JQuery.EventHandler<TElement, TData> | JQuery.EventHandlerBase<any, JQuery.Event<TElement, TData>>): this;
@@ -4866,6 +5049,7 @@ interface JQuery<TElement extends Node = HTMLElement> extends Iterable<TElement>
4866
5049
  * @param handler A function to execute each time the event is triggered.
4867
5050
  * @see {@link https://api.jquery.com/scroll/}
4868
5051
  * @since 1.0
5052
+ * @deprecated 3.3
4869
5053
  */
4870
5054
  scroll(handler?: JQuery.EventHandler<TElement> | JQuery.EventHandlerBase<any, JQuery.Event<TElement>> | false): this;
4871
5055
  /**
@@ -4906,6 +5090,7 @@ interface JQuery<TElement extends Node = HTMLElement> extends Iterable<TElement>
4906
5090
  * @param handler A function to execute each time the event is triggered.
4907
5091
  * @see {@link https://api.jquery.com/select/}
4908
5092
  * @since 1.4.3
5093
+ * @deprecated 3.3
4909
5094
  */
4910
5095
  select<TData>(eventData: TData,
4911
5096
  handler: JQuery.EventHandler<TElement, TData> | JQuery.EventHandlerBase<any, JQuery.Event<TElement, TData>>): this;
@@ -4915,6 +5100,7 @@ interface JQuery<TElement extends Node = HTMLElement> extends Iterable<TElement>
4915
5100
  * @param handler A function to execute each time the event is triggered.
4916
5101
  * @see {@link https://api.jquery.com/select/}
4917
5102
  * @since 1.0
5103
+ * @deprecated 3.3
4918
5104
  */
4919
5105
  select(handler?: JQuery.EventHandler<TElement> | JQuery.EventHandlerBase<any, JQuery.Event<TElement>> | false): this;
4920
5106
  /**
@@ -5106,6 +5292,7 @@ interface JQuery<TElement extends Node = HTMLElement> extends Iterable<TElement>
5106
5292
  * @param handler A function to execute each time the event is triggered.
5107
5293
  * @see {@link https://api.jquery.com/submit/}
5108
5294
  * @since 1.4.3
5295
+ * @deprecated 3.3
5109
5296
  */
5110
5297
  submit<TData>(eventData: TData,
5111
5298
  handler: JQuery.EventHandler<TElement, TData> | JQuery.EventHandlerBase<any, JQuery.Event<TElement, TData>>): this;
@@ -5115,6 +5302,7 @@ interface JQuery<TElement extends Node = HTMLElement> extends Iterable<TElement>
5115
5302
  * @param handler A function to execute each time the event is triggered.
5116
5303
  * @see {@link https://api.jquery.com/submit/}
5117
5304
  * @since 1.0
5305
+ * @deprecated 3.3
5118
5306
  */
5119
5307
  submit(handler?: JQuery.EventHandler<TElement> | JQuery.EventHandlerBase<any, JQuery.Event<TElement>> | false): this;
5120
5308
  /**
@@ -5179,6 +5367,7 @@ interface JQuery<TElement extends Node = HTMLElement> extends Iterable<TElement>
5179
5367
  * either the class's presence or the value of the state argument.
5180
5368
  *
5181
5369
  * @param className One or more class names (separated by spaces) to be toggled for each element in the matched set.
5370
+ * An array of classes to be toggled for each element in the matched set.
5182
5371
  * A function that returns class names to be toggled in the class attribute of each element in the
5183
5372
  * matched set. Receives the index position of the element in the set, the old class value, and the state as arguments.
5184
5373
  * @param state A Boolean (not just truthy/falsy) value to determine whether the class should be added or removed.
@@ -5186,8 +5375,9 @@ interface JQuery<TElement extends Node = HTMLElement> extends Iterable<TElement>
5186
5375
  * @since 1.0
5187
5376
  * @since 1.3
5188
5377
  * @since 1.4
5378
+ * @since 3.3
5189
5379
  */
5190
- toggleClass<TState extends boolean>(className: string | ((this: TElement, index: number, className: string, state: TState) => string),
5380
+ toggleClass<TState extends boolean>(className: JQuery.TypeOrArray<string> | ((this: TElement, index: number, className: string, state: TState) => string),
5191
5381
  state?: TState): this;
5192
5382
  /**
5193
5383
  * Add or remove one or more classes from each element in the set of matched elements, depending on
@@ -5370,6 +5560,9 @@ interface JQuery<TElement extends Node = HTMLElement> extends Iterable<TElement>
5370
5560
  [n: number]: TElement;
5371
5561
  }
5372
5562
 
5563
+ // ES5 compatibility
5564
+ interface Iterable<T> { }
5565
+
5373
5566
  declare namespace JQuery {
5374
5567
  type TypeOrArray<T> = T | T[];
5375
5568
  type Node = Element | Text | Comment;
@@ -5405,6 +5598,14 @@ declare namespace JQuery {
5405
5598
  * A string containing the URL to which the request is sent.
5406
5599
  */
5407
5600
  url?: string;
5601
+ /**
5602
+ * A pre-request callback function that can be used to modify the jqXHR (in jQuery 1.4.x,
5603
+ * XMLHTTPRequest) object before it is sent. Use this to set custom headers, etc. The jqXHR and
5604
+ * settings objects are passed as arguments. This is an Ajax Event. Returning false in the beforeSend
5605
+ * function will cancel the request. As of jQuery 1.5, the beforeSend option will be called regardless
5606
+ * of the type of request.
5607
+ */
5608
+ beforeSend?(this: TContext, jqXHR: jqXHR, settings: AjaxSettings<TContext>): false | void;
5408
5609
  }
5409
5610
 
5410
5611
  interface UrlAjaxSettings<TContext = any> extends Ajax.AjaxSettingsBase<TContext> {
@@ -5412,6 +5613,14 @@ declare namespace JQuery {
5412
5613
  * A string containing the URL to which the request is sent.
5413
5614
  */
5414
5615
  url: string;
5616
+ /**
5617
+ * A pre-request callback function that can be used to modify the jqXHR (in jQuery 1.4.x,
5618
+ * XMLHTTPRequest) object before it is sent. Use this to set custom headers, etc. The jqXHR and
5619
+ * settings objects are passed as arguments. This is an Ajax Event. Returning false in the beforeSend
5620
+ * function will cancel the request. As of jQuery 1.5, the beforeSend option will be called regardless
5621
+ * of the type of request.
5622
+ */
5623
+ beforeSend?(this: TContext, jqXHR: jqXHR, settings: UrlAjaxSettings<TContext>): false | void;
5415
5624
  }
5416
5625
 
5417
5626
  namespace Ajax {