cypress 3.3.2 → 3.6.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,204 @@
1
+ // tslint:disable:no-irregular-whitespace
2
+
3
+ // tslint:disable-next-line:no-empty-interface
4
+ interface JQueryCallback extends JQuery.Callbacks { }
5
+ interface JQueryDeferred<T> extends JQuery.Deferred<T> { }
6
+ // tslint:disable-next-line:no-empty-interface
7
+ interface JQueryEventConstructor extends JQuery.EventStatic { }
8
+ interface JQueryDeferred<T> extends JQuery.Deferred<T> { }
9
+ // tslint:disable-next-line:no-empty-interface
10
+ interface JQueryAjaxSettings extends JQuery.AjaxSettings { }
11
+ interface JQueryAnimationOptions extends JQuery.EffectsOptions<Element> { }
12
+ // tslint:disable-next-line:no-empty-interface
13
+ interface JQueryCoordinates extends JQuery.Coordinates { }
14
+ interface JQueryGenericPromise<T> extends JQuery.Thenable<T> { }
15
+ // tslint:disable-next-line:no-empty-interface
16
+ interface JQueryXHR extends JQuery.jqXHR { }
17
+ interface JQueryPromise<T> extends JQuery.Promise<T> { }
18
+ // tslint:disable-next-line:no-empty-interface
19
+ interface JQuerySerializeArrayElement extends JQuery.NameValuePair { }
20
+
21
+ /**
22
+ * @deprecated ​ Deprecated since 1.9. See \`{@link https://api.jquery.com/jQuery.support/ }\`.
23
+ */
24
+ // tslint:disable-next-line:no-empty-interface
25
+ interface JQuerySupport extends JQuery.PlainObject { }
26
+
27
+ // Legacy types that are not represented in the current type definitions are marked deprecated.
28
+
29
+ /**
30
+ * @deprecated ​ Deprecated. Use \`{@link JQuery.Deferred.Callback }\` or \`{@link JQuery.Deferred.CallbackBase }\`.
31
+ */
32
+ interface JQueryPromiseCallback<T> {
33
+ // tslint:disable-next-line:callable-types
34
+ (value?: T, ...args: any[]): void;
35
+ }
36
+ /**
37
+ * @deprecated ​ Deprecated. Use \`{@link JQueryStatic.param JQueryStatic&#91;'param'&#93;}\`.
38
+ */
39
+ interface JQueryParam {
40
+ /**
41
+ * Create a serialized representation of an array or object, suitable for use in a URL query string or Ajax request.
42
+ * @param obj An array or object to serialize.
43
+ * @param traditional A Boolean indicating whether to perform a traditional "shallow" serialization.
44
+ */
45
+ // tslint:disable-next-line:callable-types
46
+ (obj: any, traditional?: boolean): string;
47
+ }
48
+ /**
49
+ * @deprecated ​ Deprecated. Use \`{@link JQuery.Event }\`.
50
+ */
51
+ interface BaseJQueryEventObject extends Event {
52
+ /**
53
+ * The current DOM element within the event bubbling phase.
54
+ * @see \`{@link https://api.jquery.com/event.currentTarget/ }\`
55
+ */
56
+ currentTarget: Element;
57
+ /**
58
+ * An optional object of data passed to an event method when the current executing handler is bound.
59
+ * @see \`{@link https://api.jquery.com/event.data/ }\`
60
+ */
61
+ data: any;
62
+ /**
63
+ * The element where the currently-called jQuery event handler was attached.
64
+ * @see \`{@link https://api.jquery.com/event.delegateTarget/ }\`
65
+ */
66
+ delegateTarget: Element;
67
+ /**
68
+ * Returns whether event.preventDefault() was ever called on this event object.
69
+ * @see \`{@link https://api.jquery.com/event.isDefaultPrevented/ }\`
70
+ */
71
+ isDefaultPrevented(): boolean;
72
+ /**
73
+ * Returns whether event.stopImmediatePropagation() was ever called on this event object.
74
+ * @see \`{@link https://api.jquery.com/event.isImmediatePropagationStopped/ }\`
75
+ */
76
+ isImmediatePropagationStopped(): boolean;
77
+ /**
78
+ * Returns whether event.stopPropagation() was ever called on this event object.
79
+ * @see \`{@link https://api.jquery.com/event.isPropagationStopped/ }\`
80
+ */
81
+ isPropagationStopped(): boolean;
82
+ /**
83
+ * The namespace specified when the event was triggered.
84
+ * @see \`{@link https://api.jquery.com/event.namespace/ }\`
85
+ */
86
+ namespace: string;
87
+ /**
88
+ * The browser's original Event object.
89
+ * @see \`{@link https://api.jquery.com/category/events/event-object/ }\`
90
+ */
91
+ originalEvent: Event;
92
+ /**
93
+ * If this method is called, the default action of the event will not be triggered.
94
+ * @see \`{@link https://api.jquery.com/event.preventDefault/ }\`
95
+ */
96
+ preventDefault(): any;
97
+ /**
98
+ * The other DOM element involved in the event, if any.
99
+ * @see \`{@link https://api.jquery.com/event.relatedTarget/ }\`
100
+ */
101
+ relatedTarget: Element;
102
+ /**
103
+ * The last value returned by an event handler that was triggered by this event, unless the value was undefined.
104
+ * @see \`{@link https://api.jquery.com/event.result/ }\`
105
+ */
106
+ result: any;
107
+ /**
108
+ * Keeps the rest of the handlers from being executed and prevents the event from bubbling up the DOM tree.
109
+ * @see \`{@link https://api.jquery.com/event.stopImmediatePropagation/ }\`
110
+ */
111
+ stopImmediatePropagation(): void;
112
+ /**
113
+ * Prevents the event from bubbling up the DOM tree, preventing any parent handlers from being notified of the event.
114
+ * @see \`{@link https://api.jquery.com/event.stopPropagation/ }\`
115
+ */
116
+ stopPropagation(): void;
117
+ /**
118
+ * The DOM element that initiated the event.
119
+ * @see \`{@link https://api.jquery.com/event.target/ }\`
120
+ */
121
+ target: Element;
122
+ /**
123
+ * The mouse position relative to the left edge of the document.
124
+ * @see \`{@link https://api.jquery.com/event.pageX/ }\`
125
+ */
126
+ pageX: number;
127
+ /**
128
+ * The mouse position relative to the top edge of the document.
129
+ * @see \`{@link https://api.jquery.com/event.pageY/ }\`
130
+ */
131
+ pageY: number;
132
+ /**
133
+ * For key or mouse events, this property indicates the specific key or button that was pressed.
134
+ * @see \`{@link https://api.jquery.com/event.which/ }\`
135
+ */
136
+ which: number;
137
+ /**
138
+ * Indicates whether the META key was pressed when the event fired.
139
+ * @see \`{@link https://api.jquery.com/event.metaKey/ }\`
140
+ */
141
+ metaKey: boolean;
142
+ }
143
+ /**
144
+ * @deprecated ​ Deprecated. Use \`{@link JQuery.Event }\`.
145
+ */
146
+ interface JQueryInputEventObject extends BaseJQueryEventObject {
147
+ altKey: boolean;
148
+ ctrlKey: boolean;
149
+ metaKey: boolean;
150
+ shiftKey: boolean;
151
+ }
152
+ /**
153
+ * @deprecated ​ Deprecated. Use \`{@link JQuery.Event }\`.
154
+ */
155
+ interface JQueryMouseEventObject extends JQueryInputEventObject {
156
+ button: number;
157
+ clientX: number;
158
+ clientY: number;
159
+ offsetX: number;
160
+ offsetY: number;
161
+ pageX: number;
162
+ pageY: number;
163
+ screenX: number;
164
+ screenY: number;
165
+ }
166
+ /**
167
+ * @deprecated ​ Deprecated. Use \`{@link JQuery.Event }\`.
168
+ */
169
+ interface JQueryKeyEventObject extends JQueryInputEventObject {
170
+ /** @deprecated */
171
+ char: string;
172
+ /** @deprecated */
173
+ charCode: number;
174
+ key: string;
175
+ /** @deprecated */
176
+ keyCode: number;
177
+ }
178
+ /**
179
+ * @deprecated ​ Deprecated. Use \`{@link JQuery.Event }\`.
180
+ */
181
+ interface JQueryEventObject extends BaseJQueryEventObject, JQueryInputEventObject, JQueryMouseEventObject, JQueryKeyEventObject { }
182
+ /**
183
+ * @deprecated ​ Deprecated.
184
+ */
185
+ interface JQueryPromiseOperator<T, U> {
186
+ // tslint:disable-next-line:callable-types
187
+ (callback1: JQuery.TypeOrArray<JQueryPromiseCallback<T>>,
188
+ ...callbacksN: Array<JQuery.TypeOrArray<JQueryPromiseCallback<any>>>): JQueryPromise<U>;
189
+ }
190
+ /**
191
+ * @deprecated ​ Deprecated. Internal. See \`{@link https://github.com/jquery/api.jquery.com/issues/912 }\`.
192
+ */
193
+ interface JQueryEasingFunction {
194
+ // tslint:disable-next-line:callable-types
195
+ (percent: number): number;
196
+ }
197
+ /**
198
+ * @deprecated ​ Deprecated. Internal. See \`{@link https://github.com/jquery/api.jquery.com/issues/912 }\`.
199
+ */
200
+ interface JQueryEasingFunctions {
201
+ [name: string]: JQueryEasingFunction;
202
+ linear: JQueryEasingFunction;
203
+ swing: JQueryEasingFunction;
204
+ }