UNPKG

253 kBTypeScriptView Raw
1// tslint:disable:jsdoc-format
2// tslint:disable:max-line-length
3// tslint:disable:no-irregular-whitespace
4
5declare namespace JQuery {
6 type TypeOrArray<T> = T | T[];
7 type Node = Element | Text | Comment | Document | DocumentFragment;
8
9 /**
10 * A string is designated htmlString in jQuery documentation when it is used to represent one or more DOM elements, typically to be created and inserted in the document. When passed as an argument of the jQuery() function, the string is identified as HTML if it starts with <tag ... >) and is parsed as such until the final > character. Prior to jQuery 1.9, a string was considered to be HTML if it contained <tag ... > anywhere within the string.
11 */
12 type htmlString = string;
13 /**
14 * A selector is used in jQuery to select DOM elements from a DOM document. That document is, in most cases, the DOM document present in all browsers, but can also be an XML document received via Ajax.
15 */
16 type Selector = string;
17
18 /**
19 * The PlainObject type is a JavaScript object containing zero or more key-value pairs. The plain object is, in other words, an Object object. It is designated "plain" in jQuery documentation to distinguish it from other kinds of JavaScript objects: for example, null, user-defined arrays, and host objects such as document, all of which have a typeof value of "object."
20 *
21 * **Note**: The type declaration of PlainObject is imprecise. It includes host objects and user-defined arrays which do not match jQuery's definition.
22 */
23 interface PlainObject<T = any> {
24 [key: string]: T;
25 }
26
27 interface Selectors extends Sizzle.Selectors {
28 /**
29 * @deprecated ​ Deprecated since 3.0. Use \`{@link Selectors#pseudos }\`.
30 *
31 * **Cause**: The standard way to add new custom selectors through jQuery is `jQuery.expr.pseudos`. These two other aliases are deprecated, although they still work as of jQuery 3.0.
32 *
33 * **Solution**: Rename any of the older usage to `jQuery.expr.pseudos`. The functionality is identical.
34 */
35 ':': Sizzle.Selectors.PseudoFunctions;
36 /**
37 * @deprecated ​ Deprecated since 3.0. Use \`{@link Selectors#pseudos }\`.
38 *
39 * **Cause**: The standard way to add new custom selectors through jQuery is `jQuery.expr.pseudos`. These two other aliases are deprecated, although they still work as of jQuery 3.0.
40 *
41 * **Solution**: Rename any of the older usage to `jQuery.expr.pseudos`. The functionality is identical.
42 */
43 filter: Sizzle.Selectors.FilterFunctions;
44 }
45
46 // region Ajax
47 // #region Ajax
48
49 interface AjaxSettings<TContext = any> extends Ajax.AjaxSettingsBase<TContext> {
50 /**
51 * A string containing the URL to which the request is sent.
52 */
53 url?: string | undefined;
54 }
55
56 interface UrlAjaxSettings<TContext = any> extends Ajax.AjaxSettingsBase<TContext> {
57 /**
58 * A string containing the URL to which the request is sent.
59 */
60 url: string;
61 }
62
63 namespace Ajax {
64 type SuccessTextStatus = 'success' | 'notmodified' | 'nocontent';
65 type ErrorTextStatus = 'timeout' | 'error' | 'abort' | 'parsererror';
66 type TextStatus = SuccessTextStatus | ErrorTextStatus;
67
68 type SuccessCallback<TContext> = (this: TContext, data: any, textStatus: SuccessTextStatus, jqXHR: jqXHR) => void;
69
70 type ErrorCallback<TContext> = (this: TContext, jqXHR: jqXHR, textStatus: ErrorTextStatus, errorThrown: string) => void;
71
72 type CompleteCallback<TContext> = (this: TContext, jqXHR: jqXHR, textStatus: TextStatus) => void;
73
74 /**
75 * @see \`{@link https://api.jquery.com/jquery.ajax/#jQuery-ajax-settings }\`
76 */
77 interface AjaxSettingsBase<TContext> {
78 /**
79 * A set of key/value pairs that map a given dataType to its MIME type, which gets sent in the Accept request header. This header tells the server what kind of response it will accept in return.
80 */
81 accepts?: PlainObject<string> | undefined;
82 /**
83 * 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().
84 */
85 async?: boolean | undefined;
86 /**
87 * 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.
88 */
89 beforeSend?(this: TContext, jqXHR: jqXHR, settings: this): false | void;
90 /**
91 * 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.
92 */
93 cache?: boolean | undefined;
94 /**
95 * 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", "nocontent", "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.
96 */
97 complete?: TypeOrArray<CompleteCallback<TContext>> | undefined;
98 /**
99 * An object of string/regular-expression pairs that determine how jQuery will parse the response, given its content type.
100 */
101 contents?: PlainObject<RegExp> | undefined;
102 /**
103 * When sending data to the server, use this content type. Default is "application/x-www-form-urlencoded; charset=UTF-8", which is fine for most cases. If you explicitly pass in a content-type to $.ajax(), then it is always sent to the server (even if no data is sent). As of jQuery 1.6 you can pass false to tell jQuery to not set any content type header. Note: The W3C XMLHttpRequest specification dictates that the charset is always UTF-8; specifying another charset will not force the browser to change the encoding. Note: For cross-domain requests, setting the content type to anything other than application/x-www-form-urlencoded, multipart/form-data, or text/plain will trigger the browser to send a preflight OPTIONS request to the server.
104 */
105 contentType?: string | false | undefined;
106 /**
107 * This object will be the context of all Ajax-related callbacks. By default, the context is an object that represents the Ajax settings used in the call ($.ajaxSettings merged with the settings passed to $.ajax).
108 */
109 context?: TContext | undefined;
110 /**
111 * An object containing dataType-to-dataType converters. Each converter's value is a function that returns the transformed value of the response.
112 */
113 converters?: PlainObject<((value: any) => any) | true> | undefined;
114 /**
115 * 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.
116 */
117 crossDomain?: boolean | undefined;
118 /**
119 * 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).
120 */
121 data?: PlainObject | string | undefined;
122 /**
123 * A function to be used to handle the raw response data of XMLHttpRequest. This is a pre-filtering function to sanitize the response. You should return the sanitized data. The function accepts two arguments: The raw data returned from the server and the 'dataType' parameter.
124 */
125 dataFilter?(data: string, type: string): any;
126 /**
127 * 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). The available types (and the result passed as the first argument to your success callback) are:
128 *
129 * "xml": Returns a XML document that can be processed via jQuery.
130 *
131 * "html": Returns HTML as plain text; included script tags are evaluated when inserted in the DOM.
132 *
133 * "script": Evaluates the response as JavaScript and returns it as plain text. Disables caching by appending a query string parameter, _=[TIMESTAMP], to the URL unless the cache option is set to true. Note: This will turn POSTs into GETs for remote-domain requests.
134 *
135 * "json": Evaluates the response as JSON and returns a JavaScript object. Cross-domain "json" requests are converted to "jsonp" unless the request includes jsonp: false in its request options. The JSON data is parsed in a strict manner; any malformed JSON is rejected and a parse error is thrown. As of jQuery 1.9, an empty response is also rejected; the server should return a response of null or {} instead. (See json.org for more information on proper JSON formatting.)
136 *
137 * "jsonp": Loads in a JSON block using JSONP. Adds an extra "?callback=?" to the end of your URL to specify the callback. Disables caching by appending a query string parameter, "_=[TIMESTAMP]", to the URL unless the cache option is set to true.
138 *
139 * "text": A plain text string.
140 *
141 * multiple, space-separated values: As of jQuery 1.5, jQuery can convert a dataType from what it received in the Content-Type header to what you require. For example, if you want a text response to be treated as XML, use "text xml" for the dataType. You can also make a JSONP request, have it received as text, and interpreted by jQuery as XML: "jsonp text xml". Similarly, a shorthand string such as "jsonp xml" will first attempt to convert from jsonp to xml, and, failing that, convert from jsonp to text, and then from text to xml.
142 */
143 dataType?: 'xml' | 'html' | 'script' | 'json' | 'jsonp' | 'text' | string | undefined;
144 /**
145 * The MIME type of content that is used to submit the form to the server. Possible values are:
146 *
147 * "application/x-www-form-urlencoded": The initial default type.
148 *
149 * "multipart/form-data": The type that allows file <input> element(s) to upload file data.
150 *
151 * "text/plain": A type introduced in HTML5.
152 */
153 enctype?: 'application/x-www-form-urlencoded' | 'multipart/form-data' | 'text/plain' | undefined;
154 /**
155 * 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.
156 */
157 error?: TypeOrArray<ErrorCallback<TContext>> | undefined;
158 /**
159 * 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.
160 */
161 global?: boolean | undefined;
162 /**
163 * 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.
164 */
165 headers?: PlainObject<string | null | undefined> | undefined;
166 /**
167 * 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.
168 */
169 ifModified?: boolean | undefined;
170 /**
171 * 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.
172 */
173 isLocal?: boolean | undefined;
174 /**
175 * 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" }. If you don't trust the target of your Ajax requests, consider setting the jsonp property to false for security reasons.
176 */
177 jsonp?: string | false | undefined;
178 /**
179 * Specify the callback function name for a JSONP request. This value will be used instead of the random name automatically generated by jQuery. It is preferable to let jQuery generate a unique name as it'll make it easier to manage the requests and provide callbacks and error handling. You may want to specify the callback when you want to enable better browser caching of GET requests. As of jQuery 1.5, you can also use a function for this setting, in which case the value of jsonpCallback is set to the return value of that function.
180 */
181 jsonpCallback?: string | ((this: TContext) => string) | undefined;
182 /**
183 * The HTTP method to use for the request (e.g. "POST", "GET", "PUT").
184 */
185 method?: string | undefined;
186 /**
187 * A mime type to override the XHR mime type.
188 */
189 mimeType?: string | undefined;
190 /**
191 * A password to be used with XMLHttpRequest in response to an HTTP access authentication request.
192 */
193 password?: string | undefined;
194 /**
195 * 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.
196 */
197 processData?: boolean | undefined;
198 /**
199 * 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.
200 */
201 scriptCharset?: string | undefined;
202 /**
203 * An object of numeric HTTP codes and functions to be called when the response has the corresponding code.
204 *
205 * If 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.
206 */
207 statusCode?: StatusCodeCallbacks<TContext> | undefined;
208 /**
209 * 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 or the dataFilter callback function, if specified; 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.
210 */
211 success?: TypeOrArray<SuccessCallback<TContext>> | undefined;
212 /**
213 * Set a timeout (in milliseconds) for the request. A value of 0 means there will be no timeout. 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.
214 */
215 timeout?: number | undefined;
216 /**
217 * Set this to true if you wish to use the traditional style of param serialization.
218 */
219 traditional?: boolean | undefined;
220 /**
221 * An alias for method. You should use type if you're using versions of jQuery prior to 1.9.0.
222 */
223 type?: string | undefined;
224 /**
225 * A username to be used with XMLHttpRequest in response to an HTTP access authentication request.
226 */
227 username?: string | undefined;
228 // ActiveXObject requires "lib": ["scripthost"] which consumers would also require
229 /**
230 * 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.
231 */
232 xhr?(): XMLHttpRequest;
233 /**
234 * An object of fieldName-fieldValue pairs to set on the native XHR object.
235 *
236 * 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.
237 */
238 xhrFields?: XHRFields | undefined;
239 }
240
241 // region StatusCodeCallbacks
242 // #region StatusCodeCallbacks
243
244 type StatusCodeCallbacks<TContext> = {
245 // region Success Status Codes
246 // #region Success Status Codes
247
248 // jQuery treats 2xx and 304 status codes as a success
249
250 200?: SuccessCallback<TContext> | undefined;
251 201?: SuccessCallback<TContext> | undefined;
252 202?: SuccessCallback<TContext> | undefined;
253 203?: SuccessCallback<TContext> | undefined;
254 204?: SuccessCallback<TContext> | undefined;
255 205?: SuccessCallback<TContext> | undefined;
256 206?: SuccessCallback<TContext> | undefined;
257 207?: SuccessCallback<TContext> | undefined;
258 208?: SuccessCallback<TContext> | undefined;
259 209?: SuccessCallback<TContext> | undefined;
260 210?: SuccessCallback<TContext> | undefined;
261 211?: SuccessCallback<TContext> | undefined;
262 212?: SuccessCallback<TContext> | undefined;
263 213?: SuccessCallback<TContext> | undefined;
264 214?: SuccessCallback<TContext> | undefined;
265 215?: SuccessCallback<TContext> | undefined;
266 216?: SuccessCallback<TContext> | undefined;
267 217?: SuccessCallback<TContext> | undefined;
268 218?: SuccessCallback<TContext> | undefined;
269 219?: SuccessCallback<TContext> | undefined;
270 220?: SuccessCallback<TContext> | undefined;
271 221?: SuccessCallback<TContext> | undefined;
272 222?: SuccessCallback<TContext> | undefined;
273 223?: SuccessCallback<TContext> | undefined;
274 224?: SuccessCallback<TContext> | undefined;
275 225?: SuccessCallback<TContext> | undefined;
276 226?: SuccessCallback<TContext> | undefined;
277 227?: SuccessCallback<TContext> | undefined;
278 228?: SuccessCallback<TContext> | undefined;
279 229?: SuccessCallback<TContext> | undefined;
280 230?: SuccessCallback<TContext> | undefined;
281 231?: SuccessCallback<TContext> | undefined;
282 232?: SuccessCallback<TContext> | undefined;
283 233?: SuccessCallback<TContext> | undefined;
284 234?: SuccessCallback<TContext> | undefined;
285 235?: SuccessCallback<TContext> | undefined;
286 236?: SuccessCallback<TContext> | undefined;
287 237?: SuccessCallback<TContext> | undefined;
288 238?: SuccessCallback<TContext> | undefined;
289 239?: SuccessCallback<TContext> | undefined;
290 240?: SuccessCallback<TContext> | undefined;
291 241?: SuccessCallback<TContext> | undefined;
292 242?: SuccessCallback<TContext> | undefined;
293 243?: SuccessCallback<TContext> | undefined;
294 244?: SuccessCallback<TContext> | undefined;
295 245?: SuccessCallback<TContext> | undefined;
296 246?: SuccessCallback<TContext> | undefined;
297 247?: SuccessCallback<TContext> | undefined;
298 248?: SuccessCallback<TContext> | undefined;
299 249?: SuccessCallback<TContext> | undefined;
300 250?: SuccessCallback<TContext> | undefined;
301 251?: SuccessCallback<TContext> | undefined;
302 252?: SuccessCallback<TContext> | undefined;
303 253?: SuccessCallback<TContext> | undefined;
304 254?: SuccessCallback<TContext> | undefined;
305 255?: SuccessCallback<TContext> | undefined;
306 256?: SuccessCallback<TContext> | undefined;
307 257?: SuccessCallback<TContext> | undefined;
308 258?: SuccessCallback<TContext> | undefined;
309 259?: SuccessCallback<TContext> | undefined;
310 260?: SuccessCallback<TContext> | undefined;
311 261?: SuccessCallback<TContext> | undefined;
312 262?: SuccessCallback<TContext> | undefined;
313 263?: SuccessCallback<TContext> | undefined;
314 264?: SuccessCallback<TContext> | undefined;
315 265?: SuccessCallback<TContext> | undefined;
316 266?: SuccessCallback<TContext> | undefined;
317 267?: SuccessCallback<TContext> | undefined;
318 268?: SuccessCallback<TContext> | undefined;
319 269?: SuccessCallback<TContext> | undefined;
320 270?: SuccessCallback<TContext> | undefined;
321 271?: SuccessCallback<TContext> | undefined;
322 272?: SuccessCallback<TContext> | undefined;
323 273?: SuccessCallback<TContext> | undefined;
324 274?: SuccessCallback<TContext> | undefined;
325 275?: SuccessCallback<TContext> | undefined;
326 276?: SuccessCallback<TContext> | undefined;
327 277?: SuccessCallback<TContext> | undefined;
328 278?: SuccessCallback<TContext> | undefined;
329 279?: SuccessCallback<TContext> | undefined;
330 280?: SuccessCallback<TContext> | undefined;
331 281?: SuccessCallback<TContext> | undefined;
332 282?: SuccessCallback<TContext> | undefined;
333 283?: SuccessCallback<TContext> | undefined;
334 284?: SuccessCallback<TContext> | undefined;
335 285?: SuccessCallback<TContext> | undefined;
336 286?: SuccessCallback<TContext> | undefined;
337 287?: SuccessCallback<TContext> | undefined;
338 288?: SuccessCallback<TContext> | undefined;
339 289?: SuccessCallback<TContext> | undefined;
340 290?: SuccessCallback<TContext> | undefined;
341 291?: SuccessCallback<TContext> | undefined;
342 292?: SuccessCallback<TContext> | undefined;
343 293?: SuccessCallback<TContext> | undefined;
344 294?: SuccessCallback<TContext> | undefined;
345 295?: SuccessCallback<TContext> | undefined;
346 296?: SuccessCallback<TContext> | undefined;
347 297?: SuccessCallback<TContext> | undefined;
348 298?: SuccessCallback<TContext> | undefined;
349 299?: SuccessCallback<TContext> | undefined;
350 304?: SuccessCallback<TContext> | undefined;
351
352 // #endregion
353
354 // region Error Status Codes
355 // #region Error Status Codes
356
357 300?: ErrorCallback<TContext> | undefined;
358 301?: ErrorCallback<TContext> | undefined;
359 302?: ErrorCallback<TContext> | undefined;
360 303?: ErrorCallback<TContext> | undefined;
361 305?: ErrorCallback<TContext> | undefined;
362 306?: ErrorCallback<TContext> | undefined;
363 307?: ErrorCallback<TContext> | undefined;
364 308?: ErrorCallback<TContext> | undefined;
365 309?: ErrorCallback<TContext> | undefined;
366 310?: ErrorCallback<TContext> | undefined;
367 311?: ErrorCallback<TContext> | undefined;
368 312?: ErrorCallback<TContext> | undefined;
369 313?: ErrorCallback<TContext> | undefined;
370 314?: ErrorCallback<TContext> | undefined;
371 315?: ErrorCallback<TContext> | undefined;
372 316?: ErrorCallback<TContext> | undefined;
373 317?: ErrorCallback<TContext> | undefined;
374 318?: ErrorCallback<TContext> | undefined;
375 319?: ErrorCallback<TContext> | undefined;
376 320?: ErrorCallback<TContext> | undefined;
377 321?: ErrorCallback<TContext> | undefined;
378 322?: ErrorCallback<TContext> | undefined;
379 323?: ErrorCallback<TContext> | undefined;
380 324?: ErrorCallback<TContext> | undefined;
381 325?: ErrorCallback<TContext> | undefined;
382 326?: ErrorCallback<TContext> | undefined;
383 327?: ErrorCallback<TContext> | undefined;
384 328?: ErrorCallback<TContext> | undefined;
385 329?: ErrorCallback<TContext> | undefined;
386 330?: ErrorCallback<TContext> | undefined;
387 331?: ErrorCallback<TContext> | undefined;
388 332?: ErrorCallback<TContext> | undefined;
389 333?: ErrorCallback<TContext> | undefined;
390 334?: ErrorCallback<TContext> | undefined;
391 335?: ErrorCallback<TContext> | undefined;
392 336?: ErrorCallback<TContext> | undefined;
393 337?: ErrorCallback<TContext> | undefined;
394 338?: ErrorCallback<TContext> | undefined;
395 339?: ErrorCallback<TContext> | undefined;
396 340?: ErrorCallback<TContext> | undefined;
397 341?: ErrorCallback<TContext> | undefined;
398 342?: ErrorCallback<TContext> | undefined;
399 343?: ErrorCallback<TContext> | undefined;
400 344?: ErrorCallback<TContext> | undefined;
401 345?: ErrorCallback<TContext> | undefined;
402 346?: ErrorCallback<TContext> | undefined;
403 347?: ErrorCallback<TContext> | undefined;
404 348?: ErrorCallback<TContext> | undefined;
405 349?: ErrorCallback<TContext> | undefined;
406 350?: ErrorCallback<TContext> | undefined;
407 351?: ErrorCallback<TContext> | undefined;
408 352?: ErrorCallback<TContext> | undefined;
409 353?: ErrorCallback<TContext> | undefined;
410 354?: ErrorCallback<TContext> | undefined;
411 355?: ErrorCallback<TContext> | undefined;
412 356?: ErrorCallback<TContext> | undefined;
413 357?: ErrorCallback<TContext> | undefined;
414 358?: ErrorCallback<TContext> | undefined;
415 359?: ErrorCallback<TContext> | undefined;
416 360?: ErrorCallback<TContext> | undefined;
417 361?: ErrorCallback<TContext> | undefined;
418 362?: ErrorCallback<TContext> | undefined;
419 363?: ErrorCallback<TContext> | undefined;
420 364?: ErrorCallback<TContext> | undefined;
421 365?: ErrorCallback<TContext> | undefined;
422 366?: ErrorCallback<TContext> | undefined;
423 367?: ErrorCallback<TContext> | undefined;
424 368?: ErrorCallback<TContext> | undefined;
425 369?: ErrorCallback<TContext> | undefined;
426 370?: ErrorCallback<TContext> | undefined;
427 371?: ErrorCallback<TContext> | undefined;
428 372?: ErrorCallback<TContext> | undefined;
429 373?: ErrorCallback<TContext> | undefined;
430 374?: ErrorCallback<TContext> | undefined;
431 375?: ErrorCallback<TContext> | undefined;
432 376?: ErrorCallback<TContext> | undefined;
433 377?: ErrorCallback<TContext> | undefined;
434 378?: ErrorCallback<TContext> | undefined;
435 379?: ErrorCallback<TContext> | undefined;
436 380?: ErrorCallback<TContext> | undefined;
437 381?: ErrorCallback<TContext> | undefined;
438 382?: ErrorCallback<TContext> | undefined;
439 383?: ErrorCallback<TContext> | undefined;
440 384?: ErrorCallback<TContext> | undefined;
441 385?: ErrorCallback<TContext> | undefined;
442 386?: ErrorCallback<TContext> | undefined;
443 387?: ErrorCallback<TContext> | undefined;
444 388?: ErrorCallback<TContext> | undefined;
445 389?: ErrorCallback<TContext> | undefined;
446 390?: ErrorCallback<TContext> | undefined;
447 391?: ErrorCallback<TContext> | undefined;
448 392?: ErrorCallback<TContext> | undefined;
449 393?: ErrorCallback<TContext> | undefined;
450 394?: ErrorCallback<TContext> | undefined;
451 395?: ErrorCallback<TContext> | undefined;
452 396?: ErrorCallback<TContext> | undefined;
453 397?: ErrorCallback<TContext> | undefined;
454 398?: ErrorCallback<TContext> | undefined;
455 399?: ErrorCallback<TContext> | undefined;
456 400?: ErrorCallback<TContext> | undefined;
457 401?: ErrorCallback<TContext> | undefined;
458 402?: ErrorCallback<TContext> | undefined;
459 403?: ErrorCallback<TContext> | undefined;
460 404?: ErrorCallback<TContext> | undefined;
461 405?: ErrorCallback<TContext> | undefined;
462 406?: ErrorCallback<TContext> | undefined;
463 407?: ErrorCallback<TContext> | undefined;
464 408?: ErrorCallback<TContext> | undefined;
465 409?: ErrorCallback<TContext> | undefined;
466 410?: ErrorCallback<TContext> | undefined;
467 411?: ErrorCallback<TContext> | undefined;
468 412?: ErrorCallback<TContext> | undefined;
469 413?: ErrorCallback<TContext> | undefined;
470 414?: ErrorCallback<TContext> | undefined;
471 415?: ErrorCallback<TContext> | undefined;
472 416?: ErrorCallback<TContext> | undefined;
473 417?: ErrorCallback<TContext> | undefined;
474 418?: ErrorCallback<TContext> | undefined;
475 419?: ErrorCallback<TContext> | undefined;
476 420?: ErrorCallback<TContext> | undefined;
477 421?: ErrorCallback<TContext> | undefined;
478 422?: ErrorCallback<TContext> | undefined;
479 423?: ErrorCallback<TContext> | undefined;
480 424?: ErrorCallback<TContext> | undefined;
481 425?: ErrorCallback<TContext> | undefined;
482 426?: ErrorCallback<TContext> | undefined;
483 427?: ErrorCallback<TContext> | undefined;
484 428?: ErrorCallback<TContext> | undefined;
485 429?: ErrorCallback<TContext> | undefined;
486 430?: ErrorCallback<TContext> | undefined;
487 431?: ErrorCallback<TContext> | undefined;
488 432?: ErrorCallback<TContext> | undefined;
489 433?: ErrorCallback<TContext> | undefined;
490 434?: ErrorCallback<TContext> | undefined;
491 435?: ErrorCallback<TContext> | undefined;
492 436?: ErrorCallback<TContext> | undefined;
493 437?: ErrorCallback<TContext> | undefined;
494 438?: ErrorCallback<TContext> | undefined;
495 439?: ErrorCallback<TContext> | undefined;
496 440?: ErrorCallback<TContext> | undefined;
497 441?: ErrorCallback<TContext> | undefined;
498 442?: ErrorCallback<TContext> | undefined;
499 443?: ErrorCallback<TContext> | undefined;
500 444?: ErrorCallback<TContext> | undefined;
501 445?: ErrorCallback<TContext> | undefined;
502 446?: ErrorCallback<TContext> | undefined;
503 447?: ErrorCallback<TContext> | undefined;
504 448?: ErrorCallback<TContext> | undefined;
505 449?: ErrorCallback<TContext> | undefined;
506 450?: ErrorCallback<TContext> | undefined;
507 451?: ErrorCallback<TContext> | undefined;
508 452?: ErrorCallback<TContext> | undefined;
509 453?: ErrorCallback<TContext> | undefined;
510 454?: ErrorCallback<TContext> | undefined;
511 455?: ErrorCallback<TContext> | undefined;
512 456?: ErrorCallback<TContext> | undefined;
513 457?: ErrorCallback<TContext> | undefined;
514 458?: ErrorCallback<TContext> | undefined;
515 459?: ErrorCallback<TContext> | undefined;
516 460?: ErrorCallback<TContext> | undefined;
517 461?: ErrorCallback<TContext> | undefined;
518 462?: ErrorCallback<TContext> | undefined;
519 463?: ErrorCallback<TContext> | undefined;
520 464?: ErrorCallback<TContext> | undefined;
521 465?: ErrorCallback<TContext> | undefined;
522 466?: ErrorCallback<TContext> | undefined;
523 467?: ErrorCallback<TContext> | undefined;
524 468?: ErrorCallback<TContext> | undefined;
525 469?: ErrorCallback<TContext> | undefined;
526 470?: ErrorCallback<TContext> | undefined;
527 471?: ErrorCallback<TContext> | undefined;
528 472?: ErrorCallback<TContext> | undefined;
529 473?: ErrorCallback<TContext> | undefined;
530 474?: ErrorCallback<TContext> | undefined;
531 475?: ErrorCallback<TContext> | undefined;
532 476?: ErrorCallback<TContext> | undefined;
533 477?: ErrorCallback<TContext> | undefined;
534 478?: ErrorCallback<TContext> | undefined;
535 479?: ErrorCallback<TContext> | undefined;
536 480?: ErrorCallback<TContext> | undefined;
537 481?: ErrorCallback<TContext> | undefined;
538 482?: ErrorCallback<TContext> | undefined;
539 483?: ErrorCallback<TContext> | undefined;
540 484?: ErrorCallback<TContext> | undefined;
541 485?: ErrorCallback<TContext> | undefined;
542 486?: ErrorCallback<TContext> | undefined;
543 487?: ErrorCallback<TContext> | undefined;
544 488?: ErrorCallback<TContext> | undefined;
545 489?: ErrorCallback<TContext> | undefined;
546 490?: ErrorCallback<TContext> | undefined;
547 491?: ErrorCallback<TContext> | undefined;
548 492?: ErrorCallback<TContext> | undefined;
549 493?: ErrorCallback<TContext> | undefined;
550 494?: ErrorCallback<TContext> | undefined;
551 495?: ErrorCallback<TContext> | undefined;
552 496?: ErrorCallback<TContext> | undefined;
553 497?: ErrorCallback<TContext> | undefined;
554 498?: ErrorCallback<TContext> | undefined;
555 499?: ErrorCallback<TContext> | undefined;
556 500?: ErrorCallback<TContext> | undefined;
557 501?: ErrorCallback<TContext> | undefined;
558 502?: ErrorCallback<TContext> | undefined;
559 503?: ErrorCallback<TContext> | undefined;
560 504?: ErrorCallback<TContext> | undefined;
561 505?: ErrorCallback<TContext> | undefined;
562 506?: ErrorCallback<TContext> | undefined;
563 507?: ErrorCallback<TContext> | undefined;
564 508?: ErrorCallback<TContext> | undefined;
565 509?: ErrorCallback<TContext> | undefined;
566 510?: ErrorCallback<TContext> | undefined;
567 511?: ErrorCallback<TContext> | undefined;
568 512?: ErrorCallback<TContext> | undefined;
569 513?: ErrorCallback<TContext> | undefined;
570 514?: ErrorCallback<TContext> | undefined;
571 515?: ErrorCallback<TContext> | undefined;
572 516?: ErrorCallback<TContext> | undefined;
573 517?: ErrorCallback<TContext> | undefined;
574 518?: ErrorCallback<TContext> | undefined;
575 519?: ErrorCallback<TContext> | undefined;
576 520?: ErrorCallback<TContext> | undefined;
577 521?: ErrorCallback<TContext> | undefined;
578 522?: ErrorCallback<TContext> | undefined;
579 523?: ErrorCallback<TContext> | undefined;
580 524?: ErrorCallback<TContext> | undefined;
581 525?: ErrorCallback<TContext> | undefined;
582 526?: ErrorCallback<TContext> | undefined;
583 527?: ErrorCallback<TContext> | undefined;
584 528?: ErrorCallback<TContext> | undefined;
585 529?: ErrorCallback<TContext> | undefined;
586 530?: ErrorCallback<TContext> | undefined;
587 531?: ErrorCallback<TContext> | undefined;
588 532?: ErrorCallback<TContext> | undefined;
589 533?: ErrorCallback<TContext> | undefined;
590 534?: ErrorCallback<TContext> | undefined;
591 535?: ErrorCallback<TContext> | undefined;
592 536?: ErrorCallback<TContext> | undefined;
593 537?: ErrorCallback<TContext> | undefined;
594 538?: ErrorCallback<TContext> | undefined;
595 539?: ErrorCallback<TContext> | undefined;
596 540?: ErrorCallback<TContext> | undefined;
597 541?: ErrorCallback<TContext> | undefined;
598 542?: ErrorCallback<TContext> | undefined;
599 543?: ErrorCallback<TContext> | undefined;
600 544?: ErrorCallback<TContext> | undefined;
601 545?: ErrorCallback<TContext> | undefined;
602 546?: ErrorCallback<TContext> | undefined;
603 547?: ErrorCallback<TContext> | undefined;
604 548?: ErrorCallback<TContext> | undefined;
605 549?: ErrorCallback<TContext> | undefined;
606 550?: ErrorCallback<TContext> | undefined;
607 551?: ErrorCallback<TContext> | undefined;
608 552?: ErrorCallback<TContext> | undefined;
609 553?: ErrorCallback<TContext> | undefined;
610 554?: ErrorCallback<TContext> | undefined;
611 555?: ErrorCallback<TContext> | undefined;
612 556?: ErrorCallback<TContext> | undefined;
613 557?: ErrorCallback<TContext> | undefined;
614 558?: ErrorCallback<TContext> | undefined;
615 559?: ErrorCallback<TContext> | undefined;
616 560?: ErrorCallback<TContext> | undefined;
617 561?: ErrorCallback<TContext> | undefined;
618 562?: ErrorCallback<TContext> | undefined;
619 563?: ErrorCallback<TContext> | undefined;
620 564?: ErrorCallback<TContext> | undefined;
621 565?: ErrorCallback<TContext> | undefined;
622 566?: ErrorCallback<TContext> | undefined;
623 567?: ErrorCallback<TContext> | undefined;
624 568?: ErrorCallback<TContext> | undefined;
625 569?: ErrorCallback<TContext> | undefined;
626 570?: ErrorCallback<TContext> | undefined;
627 571?: ErrorCallback<TContext> | undefined;
628 572?: ErrorCallback<TContext> | undefined;
629 573?: ErrorCallback<TContext> | undefined;
630 574?: ErrorCallback<TContext> | undefined;
631 575?: ErrorCallback<TContext> | undefined;
632 576?: ErrorCallback<TContext> | undefined;
633 577?: ErrorCallback<TContext> | undefined;
634 578?: ErrorCallback<TContext> | undefined;
635 579?: ErrorCallback<TContext> | undefined;
636 580?: ErrorCallback<TContext> | undefined;
637 581?: ErrorCallback<TContext> | undefined;
638 582?: ErrorCallback<TContext> | undefined;
639 583?: ErrorCallback<TContext> | undefined;
640 584?: ErrorCallback<TContext> | undefined;
641 585?: ErrorCallback<TContext> | undefined;
642 586?: ErrorCallback<TContext> | undefined;
643 587?: ErrorCallback<TContext> | undefined;
644 588?: ErrorCallback<TContext> | undefined;
645 589?: ErrorCallback<TContext> | undefined;
646 590?: ErrorCallback<TContext> | undefined;
647 591?: ErrorCallback<TContext> | undefined;
648 592?: ErrorCallback<TContext> | undefined;
649 593?: ErrorCallback<TContext> | undefined;
650 594?: ErrorCallback<TContext> | undefined;
651 595?: ErrorCallback<TContext> | undefined;
652 596?: ErrorCallback<TContext> | undefined;
653