@angular-wave/angular.ts 0.0.20 → 0.0.22

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 (128) hide show
  1. package/Makefile +1 -1
  2. package/README.md +3 -3
  3. package/TODO.md +14 -0
  4. package/dist/angular-ts.esm.js +1 -1
  5. package/dist/angular-ts.umd.js +1 -1
  6. package/index.html +2 -1
  7. package/package.json +1 -1
  8. package/src/animations/animate-css-driver.js +2 -2
  9. package/src/animations/animate-css.js +15 -6
  10. package/src/animations/animate-js.js +1 -1
  11. package/src/animations/animate-queue.js +1 -1
  12. package/src/animations/shared.js +0 -14
  13. package/src/core/compile.js +6 -3
  14. package/src/core/q.js +9 -9
  15. package/src/core/sanitize-uri.js +1 -1
  16. package/src/core/sce.js +1 -1
  17. package/src/directive/if.js +0 -79
  18. package/src/directive/if.md +80 -0
  19. package/src/directive/include.js +0 -82
  20. package/src/directive/include.md +86 -0
  21. package/src/directive/repeat.js +0 -1
  22. package/src/loader.js +0 -1
  23. package/src/public.js +0 -2
  24. package/src/router/common/trace.js +1 -1
  25. package/src/router/directives/stateDirectives.js +16 -14
  26. package/src/router/directives/viewDirective.js +2 -2
  27. package/src/router/hooks/resolve.js +3 -4
  28. package/src/router/hooks/views.js +3 -2
  29. package/src/router/state/stateService.js +1 -2
  30. package/src/router/transition/interface.js +14 -14
  31. package/src/router/transition/rejectFactory.js +29 -20
  32. package/src/router/transition/transitionHook.js +5 -5
  33. package/src/router/url/urlMatcher.js +1 -2
  34. package/src/router/url/urlRule.js +1 -1
  35. package/src/router/url/urlRules.js +1 -1
  36. package/src/shared/common.js +0 -1
  37. package/test/module-test.html +44 -12
  38. package/test/router/services.spec.js +71 -0
  39. package/test/router/state-directives.spec.js +1208 -0
  40. package/types/angular.d.ts +132 -124
  41. package/types/index.d.ts +2350 -2187
  42. package/types/jqlite.d.ts +463 -418
  43. package/types/router/core/common/common.d.ts +70 -24
  44. package/types/router/core/common/coreservices.d.ts +30 -32
  45. package/types/router/core/common/glob.d.ts +9 -9
  46. package/types/router/core/common/hof.d.ts +12 -4
  47. package/types/router/core/common/index.d.ts +8 -8
  48. package/types/router/core/common/predicates.d.ts +1 -1
  49. package/types/router/core/common/queue.d.ts +13 -13
  50. package/types/router/core/common/safeConsole.d.ts +3 -3
  51. package/types/router/core/common/strings.d.ts +4 -2
  52. package/types/router/core/common/trace.d.ts +94 -82
  53. package/types/router/core/globals.d.ts +37 -37
  54. package/types/router/core/hooks/coreResolvables.d.ts +5 -3
  55. package/types/router/core/hooks/ignoredTransition.d.ts +4 -2
  56. package/types/router/core/hooks/invalidTransition.d.ts +4 -2
  57. package/types/router/core/hooks/lazyLoad.d.ts +10 -5
  58. package/types/router/core/hooks/onEnterExitRetain.d.ts +10 -4
  59. package/types/router/core/hooks/redirectTo.d.ts +4 -2
  60. package/types/router/core/hooks/resolve.d.ts +10 -4
  61. package/types/router/core/hooks/updateGlobals.d.ts +4 -2
  62. package/types/router/core/hooks/url.d.ts +4 -2
  63. package/types/router/core/hooks/views.d.ts +7 -3
  64. package/types/router/core/index.d.ts +11 -12
  65. package/types/router/core/interface.d.ts +83 -81
  66. package/types/router/core/params/index.d.ts +5 -5
  67. package/types/router/core/params/interface.d.ts +439 -439
  68. package/types/router/core/params/param.d.ts +72 -60
  69. package/types/router/core/params/paramType.d.ts +40 -40
  70. package/types/router/core/params/paramTypes.d.ts +169 -165
  71. package/types/router/core/params/stateParams.d.ts +13 -13
  72. package/types/router/core/path/index.d.ts +2 -2
  73. package/types/router/core/path/pathNode.d.ts +49 -49
  74. package/types/router/core/path/pathUtils.d.ts +100 -74
  75. package/types/router/core/resolve/index.d.ts +3 -3
  76. package/types/router/core/resolve/interface.d.ts +137 -137
  77. package/types/router/core/resolve/resolvable.d.ts +60 -54
  78. package/types/router/core/resolve/resolveContext.d.ts +84 -79
  79. package/types/router/core/router.d.ts +95 -86
  80. package/types/router/core/state/index.d.ts +8 -8
  81. package/types/router/core/state/interface.d.ts +667 -643
  82. package/types/router/core/state/stateBuilder.d.ts +41 -38
  83. package/types/router/core/state/stateMatcher.d.ts +11 -9
  84. package/types/router/core/state/stateObject.d.ts +154 -139
  85. package/types/router/core/state/stateQueueManager.d.ts +26 -21
  86. package/types/router/core/state/stateRegistry.d.ts +124 -121
  87. package/types/router/core/state/stateService.d.ts +380 -343
  88. package/types/router/core/state/targetState.d.ts +74 -69
  89. package/types/router/core/transition/hookBuilder.d.ts +34 -30
  90. package/types/router/core/transition/hookRegistry.d.ts +96 -74
  91. package/types/router/core/transition/index.d.ts +8 -8
  92. package/types/router/core/transition/interface.d.ts +652 -609
  93. package/types/router/core/transition/rejectFactory.d.ts +97 -97
  94. package/types/router/core/transition/transition.d.ts +565 -517
  95. package/types/router/core/transition/transitionEventType.d.ts +20 -11
  96. package/types/router/core/transition/transitionHook.d.ts +90 -82
  97. package/types/router/core/transition/transitionService.d.ts +228 -161
  98. package/types/router/core/url/index.d.ts +8 -8
  99. package/types/router/core/url/interface.d.ts +100 -87
  100. package/types/router/core/url/urlConfig.d.ts +130 -126
  101. package/types/router/core/url/urlMatcher.d.ts +132 -127
  102. package/types/router/core/url/urlMatcherFactory.d.ts +46 -42
  103. package/types/router/core/url/urlRouter.d.ts +91 -75
  104. package/types/router/core/url/urlRule.d.ts +123 -100
  105. package/types/router/core/url/urlRules.d.ts +240 -232
  106. package/types/router/core/url/urlService.d.ts +201 -201
  107. package/types/router/core/view/index.d.ts +2 -2
  108. package/types/router/core/view/interface.d.ts +26 -26
  109. package/types/router/core/view/view.d.ts +152 -143
  110. package/types/router/directives/viewDirective.d.ts +12 -11
  111. package/types/router/index.d.ts +11 -12
  112. package/types/router/interface.d.ts +361 -351
  113. package/types/router/legacy/resolveService.d.ts +44 -40
  114. package/types/router/legacy/stateEvents.d.ts +1 -1
  115. package/types/router/locationServices.d.ts +45 -37
  116. package/types/router/services.d.ts +9 -9
  117. package/types/router/stateFilters.d.ts +3 -3
  118. package/types/router/stateProvider.d.ts +240 -235
  119. package/types/router/statebuilders/onEnterExitRetain.d.ts +4 -2
  120. package/types/router/statebuilders/views.d.ts +35 -22
  121. package/types/router/templateFactory.d.ts +99 -79
  122. package/types/router/viewScroll.d.ts +7 -7
  123. package/src/directive/a.js +0 -37
  124. package/test/directive/a.spec.js +0 -192
  125. package/types/router/angular.d.ts +0 -1
  126. package/types/router/core/vanilla.d.ts +0 -1
  127. package/types/router/directives/stateDirectives.d.ts +0 -3
  128. package/types/router/injectables.d.ts +0 -1
package/types/jqlite.d.ts CHANGED
@@ -1,449 +1,494 @@
1
1
  interface JQLite {
2
- [index: number]: HTMLElement;
2
+ [index: number]: HTMLElement;
3
3
 
4
- /**
5
- * Insert content, specified by the parameter, after each element in the set of matched elements.
6
- *
7
- * @param content1 HTML string, DOM element, DocumentFragment, array of elements, or jQuery object to insert after each element in the set of matched elements.
8
- * @param content2 One or more additional DOM elements, arrays of elements, HTML strings, or jQuery objects to insert after each element in the set of matched elements.
9
- * @see {@link https://api.jquery.com/after/#after-content-content}
10
- */
11
- after(content1: JQLite | any[] | Element | DocumentFragment | Text | string, ...content2: any[]): this;
12
- /**
13
- * Insert content, specified by the parameter, after each element in the set of matched elements.
14
- *
15
- * @param func A function that returns an HTML string, DOM element(s), or jQuery object to insert after each element in the set of matched elements. Receives the index position of the element in the set as an argument. Within the function, this refers to the current element in the set.
16
- * @see {@link https://api.jquery.com/after/#after-function}
17
- */
18
- after(func: (index: number, html: string) => string | Element): this;
4
+ /**
5
+ * Insert content, specified by the parameter, after each element in the set of matched elements.
6
+ *
7
+ * @param content1 HTML string, DOM element, DocumentFragment, array of elements, or jQuery object to insert after each element in the set of matched elements.
8
+ * @param content2 One or more additional DOM elements, arrays of elements, HTML strings, or jQuery objects to insert after each element in the set of matched elements.
9
+ * @see {@link https://api.jquery.com/after/#after-content-content}
10
+ */
11
+ after(
12
+ content1: JQLite | any[] | Element | DocumentFragment | Text | string,
13
+ ...content2: any[]
14
+ ): this;
15
+ /**
16
+ * Insert content, specified by the parameter, after each element in the set of matched elements.
17
+ *
18
+ * @param func A function that returns an HTML string, DOM element(s), or jQuery object to insert after each element in the set of matched elements. Receives the index position of the element in the set as an argument. Within the function, this refers to the current element in the set.
19
+ * @see {@link https://api.jquery.com/after/#after-function}
20
+ */
21
+ after(func: (index: number, html: string) => string | Element): this;
19
22
 
20
- /**
21
- * Insert content, specified by the parameter, to the end of each element in the set of matched elements.
22
- *
23
- * @param content1 DOM element, DocumentFragment, array of elements, HTML string, or jQuery object to insert at the end of each element in the set of matched elements.
24
- * @param content2 One or more additional DOM elements, arrays of elements, HTML strings, or jQuery objects to insert at the end of each element in the set of matched elements.
25
- * @see {@link https://api.jquery.com/append/#append-content-content}
26
- */
27
- append(content1: JQLite | any[] | Element | DocumentFragment | Text | string, ...content2: any[]): this;
28
- /**
29
- * Insert content, specified by the parameter, to the end of each element in the set of matched elements.
30
- *
31
- * @param func A function that returns an HTML string, DOM element(s), or jQuery object to insert at the end of each element in the set of matched elements. Receives the index position of the element in the set and the old HTML value of the element as arguments. Within the function, this refers to the current element in the set.
32
- * @see {@link https://api.jquery.com/append/#append-function}
33
- */
34
- append(func: (index: number, html: string) => string | Element): this;
23
+ /**
24
+ * Insert content, specified by the parameter, to the end of each element in the set of matched elements.
25
+ *
26
+ * @param content1 DOM element, DocumentFragment, array of elements, HTML string, or jQuery object to insert at the end of each element in the set of matched elements.
27
+ * @param content2 One or more additional DOM elements, arrays of elements, HTML strings, or jQuery objects to insert at the end of each element in the set of matched elements.
28
+ * @see {@link https://api.jquery.com/append/#append-content-content}
29
+ */
30
+ append(
31
+ content1: JQLite | any[] | Element | DocumentFragment | Text | string,
32
+ ...content2: any[]
33
+ ): this;
34
+ /**
35
+ * Insert content, specified by the parameter, to the end of each element in the set of matched elements.
36
+ *
37
+ * @param func A function that returns an HTML string, DOM element(s), or jQuery object to insert at the end of each element in the set of matched elements. Receives the index position of the element in the set and the old HTML value of the element as arguments. Within the function, this refers to the current element in the set.
38
+ * @see {@link https://api.jquery.com/append/#append-function}
39
+ */
40
+ append(func: (index: number, html: string) => string | Element): this;
35
41
 
36
- /**
37
- * Get the value of an attribute for the first element in the set of matched elements.
38
- *
39
- * @param attributeName The name of the attribute to get.
40
- * @see {@link https://api.jquery.com/attr/#attr-attributeName}
41
- */
42
- attr(attributeName: string): string;
43
- /**
44
- * Set one or more attributes for the set of matched elements.
45
- *
46
- * @param attributeName The name of the attribute to set.
47
- * @param value A value to set for the attribute. If this is `null`, the attribute will be deleted.
48
- * @see {@link https://api.jquery.com/attr/#attr-attributeName-value}
49
- */
50
- attr(attributeName: string, value: string | number | null): this;
51
- /**
52
- * Set one or more attributes for the set of matched elements.
53
- *
54
- * @param attributes An object of attribute-value pairs to set.
55
- * @see {@link https://api.jquery.com/attr/#attr-attributes}
56
- */
57
- attr(attributes: Object): this;
42
+ /**
43
+ * Get the value of an attribute for the first element in the set of matched elements.
44
+ *
45
+ * @param attributeName The name of the attribute to get.
46
+ * @see {@link https://api.jquery.com/attr/#attr-attributeName}
47
+ */
48
+ attr(attributeName: string): string;
49
+ /**
50
+ * Set one or more attributes for the set of matched elements.
51
+ *
52
+ * @param attributeName The name of the attribute to set.
53
+ * @param value A value to set for the attribute. If this is `null`, the attribute will be deleted.
54
+ * @see {@link https://api.jquery.com/attr/#attr-attributeName-value}
55
+ */
56
+ attr(attributeName: string, value: string | number | null): this;
57
+ /**
58
+ * Set one or more attributes for the set of matched elements.
59
+ *
60
+ * @param attributes An object of attribute-value pairs to set.
61
+ * @see {@link https://api.jquery.com/attr/#attr-attributes}
62
+ */
63
+ attr(attributes: Object): this;
58
64
 
59
- /**
60
- * Get the children of each element in the set of matched elements, optionally filtered by a selector.
61
- *
62
- * @see {@link https://api.jquery.com/children/}
63
- */
64
- children(): this;
65
+ /**
66
+ * Get the children of each element in the set of matched elements, optionally filtered by a selector.
67
+ *
68
+ * @see {@link https://api.jquery.com/children/}
69
+ */
70
+ children(): this;
65
71
 
66
- /**
67
- * Store arbitrary data associated with the matched elements.
68
- *
69
- * @param key A string naming the piece of data to set.
70
- * @param value The new data value; it can be any JavaScript type including Array or Object.
71
- * @see {@link https://api.jquery.com/data/#data-key-value}
72
- */
73
- data(key: string, value: any): this;
74
- /**
75
- * Return the value at the named data store for the first element in the jQuery collection, as set by data(name, value) or by an HTML5 data-* attribute.
76
- *
77
- * @param key Name of the data stored.
78
- * @see {@link https://api.jquery.com/data/#data-key}
79
- */
80
- data(key: string): any;
81
- /**
82
- * Store arbitrary data associated with the matched elements.
83
- *
84
- * @param obj An object of key-value pairs of data to update.
85
- * @see {@link https://api.jquery.com/data/#data-obj}
86
- */
87
- data(obj: { [key: string]: any }): this;
88
- /**
89
- * Return the value at the named data store for the first element in the jQuery collection, as set by data(name, value) or by an HTML5 data-* attribute.
90
- * @see {@link https://api.jquery.com/data/#data}
91
- */
92
- data(): any;
72
+ /**
73
+ * Store arbitrary data associated with the matched elements.
74
+ *
75
+ * @param key A string naming the piece of data to set.
76
+ * @param value The new data value; it can be any JavaScript type including Array or Object.
77
+ * @see {@link https://api.jquery.com/data/#data-key-value}
78
+ */
79
+ data(key: string, value: any): this;
80
+ /**
81
+ * Return the value at the named data store for the first element in the jQuery collection, as set by data(name, value) or by an HTML5 data-* attribute.
82
+ *
83
+ * @param key Name of the data stored.
84
+ * @see {@link https://api.jquery.com/data/#data-key}
85
+ */
86
+ data(key: string): any;
87
+ /**
88
+ * Store arbitrary data associated with the matched elements.
89
+ *
90
+ * @param obj An object of key-value pairs of data to update.
91
+ * @see {@link https://api.jquery.com/data/#data-obj}
92
+ */
93
+ data(obj: { [key: string]: any }): this;
94
+ /**
95
+ * Return the value at the named data store for the first element in the jQuery collection, as set by data(name, value) or by an HTML5 data-* attribute.
96
+ * @see {@link https://api.jquery.com/data/#data}
97
+ */
98
+ data(): any;
93
99
 
94
- /**
95
- * Remove the set of matched elements from the DOM.
96
- *
97
- * @param selector A selector expression that filters the set of matched elements to be removed.
98
- * @see {@link https://api.jquery.com/detach/}
99
- */
100
- detach(selector?: string): this;
100
+ /**
101
+ * Remove the set of matched elements from the DOM.
102
+ *
103
+ * @param selector A selector expression that filters the set of matched elements to be removed.
104
+ * @see {@link https://api.jquery.com/detach/}
105
+ */
106
+ detach(selector?: string): this;
101
107
 
102
- /**
103
- * Remove all child nodes of the set of matched elements from the DOM.
104
- * @see {@link https://api.jquery.com/empty/}
105
- */
106
- empty(): this;
108
+ /**
109
+ * Remove all child nodes of the set of matched elements from the DOM.
110
+ * @see {@link https://api.jquery.com/empty/}
111
+ */
112
+ empty(): this;
107
113
 
108
- /**
109
- * Reduce the set of matched elements to the one at the specified index.
110
- *
111
- * @param index An integer indicating the 0-based position of the element. OR An integer indicating the position of the element, counting backwards from the last element in the set.
112
- * @see {@link https://api.jquery.com/eq/}
113
- */
114
- eq(index: number): this;
114
+ /**
115
+ * Reduce the set of matched elements to the one at the specified index.
116
+ *
117
+ * @param index An integer indicating the 0-based position of the element. OR An integer indicating the position of the element, counting backwards from the last element in the set.
118
+ * @see {@link https://api.jquery.com/eq/}
119
+ */
120
+ eq(index: number): this;
115
121
 
116
- /**
117
- * Get the descendants of each element in the current set of matched elements, filtered by a selector, jQuery object, or element.
118
- *
119
- * @param selector A string containing a selector expression to match elements against.
120
- * @see {@link https://api.jquery.com/find/#find-selector}
121
- */
122
- find(selector: string): this;
123
- find(element: any): this;
124
- find(obj: JQLite): this;
122
+ /**
123
+ * Get the descendants of each element in the current set of matched elements, filtered by a selector, jQuery object, or element.
124
+ *
125
+ * @param selector A string containing a selector expression to match elements against.
126
+ * @see {@link https://api.jquery.com/find/#find-selector}
127
+ */
128
+ find(selector: string): this;
129
+ find(element: any): this;
130
+ find(obj: JQLite): this;
125
131
 
126
- /**
127
- * Get the HTML contents of the first element in the set of matched elements.
128
- * @see {@link https://api.jquery.com/html/#html}
129
- */
130
- html(): string;
131
- /**
132
- * Set the HTML contents of each element in the set of matched elements.
133
- *
134
- * @param htmlString A string of HTML to set as the content of each matched element.
135
- * @see {@link https://api.jquery.com/html/#html-htmlString}
136
- */
137
- html(htmlString: string): this;
138
- /**
139
- * Set the HTML contents of each element in the set of matched elements.
140
- *
141
- * @param func A function returning the HTML content to set. Receives the index position of the element in the set and the old HTML value as arguments. jQuery empties the element before calling the function; use the oldhtml argument to reference the previous content. Within the function, this refers to the current element in the set.
142
- * @see {@link https://api.jquery.com/html/#html-function}
143
- */
144
- html(func: (index: number, oldhtml: string) => string): this;
132
+ /**
133
+ * Get the HTML contents of the first element in the set of matched elements.
134
+ * @see {@link https://api.jquery.com/html/#html}
135
+ */
136
+ html(): string;
137
+ /**
138
+ * Set the HTML contents of each element in the set of matched elements.
139
+ *
140
+ * @param htmlString A string of HTML to set as the content of each matched element.
141
+ * @see {@link https://api.jquery.com/html/#html-htmlString}
142
+ */
143
+ html(htmlString: string): this;
144
+ /**
145
+ * Set the HTML contents of each element in the set of matched elements.
146
+ *
147
+ * @param func A function returning the HTML content to set. Receives the index position of the element in the set and the old HTML value as arguments. jQuery empties the element before calling the function; use the oldhtml argument to reference the previous content. Within the function, this refers to the current element in the set.
148
+ * @see {@link https://api.jquery.com/html/#html-function}
149
+ */
150
+ html(func: (index: number, oldhtml: string) => string): this;
145
151
 
146
- /**
147
- * Get the immediately following sibling of each element in the set of matched elements. If a selector is provided, it retrieves the next sibling only if it matches that selector.
148
- *
149
- * @see {@link https://api.jquery.com/next/}
150
- */
151
- next(): this;
152
+ /**
153
+ * Get the immediately following sibling of each element in the set of matched elements. If a selector is provided, it retrieves the next sibling only if it matches that selector.
154
+ *
155
+ * @see {@link https://api.jquery.com/next/}
156
+ */
157
+ next(): this;
152
158
 
153
- /**
154
- * Attach an event handler function for one or more events to the selected elements.
155
- *
156
- * @param events One or more space-separated event types and optional namespaces, such as "click" or "keydown.myPlugin".
157
- * @param handler A function to execute when the event is triggered. The value false is also allowed as a shorthand for a function that simply does return false. Rest parameter args is for optional parameters passed to jQuery.trigger(). Note that the actual parameters on the event handler function must be marked as optional (? syntax).
158
- * @see {@link https://api.jquery.com/on/#on-events-selector-data-handler}
159
- */
160
- on(events: string, handler: (eventObject: JQueryEventObject, ...args: any[]) => any): this;
161
- /**
162
- * Attach an event handler function for one or more events to the selected elements.
163
- *
164
- * @param events One or more space-separated event types and optional namespaces, such as "click" or "keydown.myPlugin".
165
- * @param data Data to be passed to the handler in event.data when an event is triggered.
166
- * @param handler A function to execute when the event is triggered. The value false is also allowed as a shorthand for a function that simply does return false.
167
- * @see {@link https://api.jquery.com/on/#on-events-selector-data-handler}
168
- */
169
- on(events: string, data: any, handler: (eventObject: JQueryEventObject, ...args: any[]) => any): this;
170
- /**
171
- * Attach an event handler function for one or more events to the selected elements.
172
- *
173
- * @param events One or more space-separated event types and optional namespaces, such as "click" or "keydown.myPlugin".
174
- * @param selector A selector string to filter the descendants of the selected elements that trigger the event. If the selector is null or omitted, the event is always triggered when it reaches the selected element.
175
- * @param handler A function to execute when the event is triggered. The value false is also allowed as a shorthand for a function that simply does return false.
176
- * @see {@link https://api.jquery.com/on/#on-events-selector-data-handler}
177
- */
178
- on(events: string, selector: string, handler: (eventObject: JQueryEventObject, ...eventData: any[]) => any): this;
179
- /**
180
- * Attach an event handler function for one or more events to the selected elements.
181
- *
182
- * @param events One or more space-separated event types and optional namespaces, such as "click" or "keydown.myPlugin".
183
- * @param selector A selector string to filter the descendants of the selected elements that trigger the event. If the selector is null or omitted, the event is always triggered when it reaches the selected element.
184
- * @param data Data to be passed to the handler in event.data when an event is triggered.
185
- * @param handler A function to execute when the event is triggered. The value false is also allowed as a shorthand for a function that simply does return false.
186
- * @see {@link https://api.jquery.com/on/#on-events-selector-data-handler}
187
- */
188
- on(
189
- events: string,
190
- selector: string,
191
- data: any,
192
- handler: (eventObject: JQueryEventObject, ...eventData: any[]) => any,
193
- ): this;
194
- /**
195
- * Attach an event handler function for one or more events to the selected elements.
196
- *
197
- * @param events An object in which the string keys represent one or more space-separated event types and optional namespaces, and the values represent a handler function to be called for the event(s).
198
- * @param selector A selector string to filter the descendants of the selected elements that will call the handler. If the selector is null or omitted, the handler is always called when it reaches the selected element.
199
- * @param data Data to be passed to the handler in event.data when an event occurs.
200
- * @see {@link https://api.jquery.com/on/#on-events-selector-data}
201
- */
202
- on(
203
- events: { [key: string]: (eventObject: JQueryEventObject, ...args: any[]) => any },
204
- selector?: string,
205
- data?: any,
206
- ): this;
207
- /**
208
- * Attach an event handler function for one or more events to the selected elements.
209
- *
210
- * @param events An object in which the string keys represent one or more space-separated event types and optional namespaces, and the values represent a handler function to be called for the event(s).
211
- * @param data Data to be passed to the handler in event.data when an event occurs.
212
- * @see {@link https://api.jquery.com/on/#on-events-selector-data}
213
- */
214
- on(events: { [key: string]: (eventObject: JQueryEventObject, ...args: any[]) => any }, data?: any): this;
159
+ /**
160
+ * Attach an event handler function for one or more events to the selected elements.
161
+ *
162
+ * @param events One or more space-separated event types and optional namespaces, such as "click" or "keydown.myPlugin".
163
+ * @param handler A function to execute when the event is triggered. The value false is also allowed as a shorthand for a function that simply does return false. Rest parameter args is for optional parameters passed to jQuery.trigger(). Note that the actual parameters on the event handler function must be marked as optional (? syntax).
164
+ * @see {@link https://api.jquery.com/on/#on-events-selector-data-handler}
165
+ */
166
+ on(
167
+ events: string,
168
+ handler: (eventObject: JQueryEventObject, ...args: any[]) => any,
169
+ ): this;
170
+ /**
171
+ * Attach an event handler function for one or more events to the selected elements.
172
+ *
173
+ * @param events One or more space-separated event types and optional namespaces, such as "click" or "keydown.myPlugin".
174
+ * @param data Data to be passed to the handler in event.data when an event is triggered.
175
+ * @param handler A function to execute when the event is triggered. The value false is also allowed as a shorthand for a function that simply does return false.
176
+ * @see {@link https://api.jquery.com/on/#on-events-selector-data-handler}
177
+ */
178
+ on(
179
+ events: string,
180
+ data: any,
181
+ handler: (eventObject: JQueryEventObject, ...args: any[]) => any,
182
+ ): this;
183
+ /**
184
+ * Attach an event handler function for one or more events to the selected elements.
185
+ *
186
+ * @param events One or more space-separated event types and optional namespaces, such as "click" or "keydown.myPlugin".
187
+ * @param selector A selector string to filter the descendants of the selected elements that trigger the event. If the selector is null or omitted, the event is always triggered when it reaches the selected element.
188
+ * @param handler A function to execute when the event is triggered. The value false is also allowed as a shorthand for a function that simply does return false.
189
+ * @see {@link https://api.jquery.com/on/#on-events-selector-data-handler}
190
+ */
191
+ on(
192
+ events: string,
193
+ selector: string,
194
+ handler: (eventObject: JQueryEventObject, ...eventData: any[]) => any,
195
+ ): this;
196
+ /**
197
+ * Attach an event handler function for one or more events to the selected elements.
198
+ *
199
+ * @param events One or more space-separated event types and optional namespaces, such as "click" or "keydown.myPlugin".
200
+ * @param selector A selector string to filter the descendants of the selected elements that trigger the event. If the selector is null or omitted, the event is always triggered when it reaches the selected element.
201
+ * @param data Data to be passed to the handler in event.data when an event is triggered.
202
+ * @param handler A function to execute when the event is triggered. The value false is also allowed as a shorthand for a function that simply does return false.
203
+ * @see {@link https://api.jquery.com/on/#on-events-selector-data-handler}
204
+ */
205
+ on(
206
+ events: string,
207
+ selector: string,
208
+ data: any,
209
+ handler: (eventObject: JQueryEventObject, ...eventData: any[]) => any,
210
+ ): this;
211
+ /**
212
+ * Attach an event handler function for one or more events to the selected elements.
213
+ *
214
+ * @param events An object in which the string keys represent one or more space-separated event types and optional namespaces, and the values represent a handler function to be called for the event(s).
215
+ * @param selector A selector string to filter the descendants of the selected elements that will call the handler. If the selector is null or omitted, the handler is always called when it reaches the selected element.
216
+ * @param data Data to be passed to the handler in event.data when an event occurs.
217
+ * @see {@link https://api.jquery.com/on/#on-events-selector-data}
218
+ */
219
+ on(
220
+ events: {
221
+ [key: string]: (eventObject: JQueryEventObject, ...args: any[]) => any;
222
+ },
223
+ selector?: string,
224
+ data?: any,
225
+ ): this;
226
+ /**
227
+ * Attach an event handler function for one or more events to the selected elements.
228
+ *
229
+ * @param events An object in which the string keys represent one or more space-separated event types and optional namespaces, and the values represent a handler function to be called for the event(s).
230
+ * @param data Data to be passed to the handler in event.data when an event occurs.
231
+ * @see {@link https://api.jquery.com/on/#on-events-selector-data}
232
+ */
233
+ on(
234
+ events: {
235
+ [key: string]: (eventObject: JQueryEventObject, ...args: any[]) => any;
236
+ },
237
+ data?: any,
238
+ ): this;
215
239
 
216
- /**
217
- * Remove an event handler.
218
- * @see {@link https://api.jquery.com/off/#off}
219
- */
220
- off(): this;
221
- /**
222
- * Remove an event handler.
223
- *
224
- * @param events One or more space-separated event types and optional namespaces, or just namespaces, such as "click", "keydown.myPlugin", or ".myPlugin".
225
- * @param selector A selector which should match the one originally passed to .on() when attaching event handlers.
226
- * @param handler A handler function previously attached for the event(s), or the special value false.
227
- * @see {@link https://api.jquery.com/off/#off-events-selector-handler}
228
- */
229
- off(events: string, selector?: string, handler?: (eventObject: JQueryEventObject) => any): this;
230
- /**
231
- * Remove an event handler.
232
- *
233
- * @param events One or more space-separated event types and optional namespaces, or just namespaces, such as "click", "keydown.myPlugin", or ".myPlugin".
234
- * @param handler A handler function previously attached for the event(s), or the special value false. Takes handler with extra args that can be attached with on().
235
- * @see {@link https://api.jquery.com/off/#off-events-selector-handler}
236
- */
237
- off(events: string, handler: (eventObject: JQueryEventObject, ...args: any[]) => any): this;
238
- /**
239
- * Remove an event handler.
240
- *
241
- * @param events One or more space-separated event types and optional namespaces, or just namespaces, such as "click", "keydown.myPlugin", or ".myPlugin".
242
- * @param handler A handler function previously attached for the event(s), or the special value false.
243
- * @see {@link https://api.jquery.com/off/#off-events-selector-handler}
244
- */
245
- off(events: string, handler: (eventObject: JQueryEventObject) => any): this;
246
- /**
247
- * Remove an event handler.
248
- *
249
- * @param events An object where the string keys represent one or more space-separated event types and optional namespaces, and the values represent handler functions previously attached for the event(s).
250
- * @param selector A selector which should match the one originally passed to .on() when attaching event handlers.
251
- * @see {@link https://api.jquery.com/off/#off-events-selector}
252
- */
253
- off(events: { [key: string]: any }, selector?: string): this;
240
+ /**
241
+ * Remove an event handler.
242
+ * @see {@link https://api.jquery.com/off/#off}
243
+ */
244
+ off(): this;
245
+ /**
246
+ * Remove an event handler.
247
+ *
248
+ * @param events One or more space-separated event types and optional namespaces, or just namespaces, such as "click", "keydown.myPlugin", or ".myPlugin".
249
+ * @param selector A selector which should match the one originally passed to .on() when attaching event handlers.
250
+ * @param handler A handler function previously attached for the event(s), or the special value false.
251
+ * @see {@link https://api.jquery.com/off/#off-events-selector-handler}
252
+ */
253
+ off(
254
+ events: string,
255
+ selector?: string,
256
+ handler?: (eventObject: JQueryEventObject) => any,
257
+ ): this;
258
+ /**
259
+ * Remove an event handler.
260
+ *
261
+ * @param events One or more space-separated event types and optional namespaces, or just namespaces, such as "click", "keydown.myPlugin", or ".myPlugin".
262
+ * @param handler A handler function previously attached for the event(s), or the special value false. Takes handler with extra args that can be attached with on().
263
+ * @see {@link https://api.jquery.com/off/#off-events-selector-handler}
264
+ */
265
+ off(
266
+ events: string,
267
+ handler: (eventObject: JQueryEventObject, ...args: any[]) => any,
268
+ ): this;
269
+ /**
270
+ * Remove an event handler.
271
+ *
272
+ * @param events One or more space-separated event types and optional namespaces, or just namespaces, such as "click", "keydown.myPlugin", or ".myPlugin".
273
+ * @param handler A handler function previously attached for the event(s), or the special value false.
274
+ * @see {@link https://api.jquery.com/off/#off-events-selector-handler}
275
+ */
276
+ off(events: string, handler: (eventObject: JQueryEventObject) => any): this;
277
+ /**
278
+ * Remove an event handler.
279
+ *
280
+ * @param events An object where the string keys represent one or more space-separated event types and optional namespaces, and the values represent handler functions previously attached for the event(s).
281
+ * @param selector A selector which should match the one originally passed to .on() when attaching event handlers.
282
+ * @see {@link https://api.jquery.com/off/#off-events-selector}
283
+ */
284
+ off(events: { [key: string]: any }, selector?: string): this;
254
285
 
255
- /**
256
- * Get the parent of each element in the current set of matched elements, optionally filtered by a selector.
257
- *
258
- * @see {@link https://api.jquery.com/parent/}
259
- */
260
- parent(): this;
286
+ /**
287
+ * Get the parent of each element in the current set of matched elements, optionally filtered by a selector.
288
+ *
289
+ * @see {@link https://api.jquery.com/parent/}
290
+ */
291
+ parent(): this;
261
292
 
262
- /**
263
- * Insert content, specified by the parameter, to the beginning of each element in the set of matched elements.
264
- *
265
- * @param content1 DOM element, DocumentFragment, array of elements, HTML string, or jQuery object to insert at the beginning of each element in the set of matched elements.
266
- * @param content2 One or more additional DOM elements, arrays of elements, HTML strings, or jQuery objects to insert at the beginning of each element in the set of matched elements.
267
- * @see {@link https://api.jquery.com/prepend/#prepend-content-content}
268
- */
269
- prepend(content1: JQLite | any[] | Element | DocumentFragment | Text | string, ...content2: any[]): this;
270
- /**
271
- * Insert content, specified by the parameter, to the beginning of each element in the set of matched elements.
272
- *
273
- * @param func A function that returns an HTML string, DOM element(s), or jQuery object to insert at the beginning of each element in the set of matched elements. Receives the index position of the element in the set and the old HTML value of the element as arguments. Within the function, this refers to the current element in the set.
274
- * @see {@link https://api.jquery.com/prepend/#prepend-function}
275
- */
276
- prepend(func: (index: number, html: string) => string | Element | JQLite): this;
277
-
278
- /**
279
- * Remove the set of matched elements from the DOM.
280
- *
281
- * @param selector A selector expression that filters the set of matched elements to be removed.
282
- * @see {@link https://api.jquery.com/remove/}
283
- */
284
- remove(selector?: string): this;
293
+ /**
294
+ * Insert content, specified by the parameter, to the beginning of each element in the set of matched elements.
295
+ *
296
+ * @param content1 DOM element, DocumentFragment, array of elements, HTML string, or jQuery object to insert at the beginning of each element in the set of matched elements.
297
+ * @param content2 One or more additional DOM elements, arrays of elements, HTML strings, or jQuery objects to insert at the beginning of each element in the set of matched elements.
298
+ * @see {@link https://api.jquery.com/prepend/#prepend-content-content}
299
+ */
300
+ prepend(
301
+ content1: JQLite | any[] | Element | DocumentFragment | Text | string,
302
+ ...content2: any[]
303
+ ): this;
304
+ /**
305
+ * Insert content, specified by the parameter, to the beginning of each element in the set of matched elements.
306
+ *
307
+ * @param func A function that returns an HTML string, DOM element(s), or jQuery object to insert at the beginning of each element in the set of matched elements. Receives the index position of the element in the set and the old HTML value of the element as arguments. Within the function, this refers to the current element in the set.
308
+ * @see {@link https://api.jquery.com/prepend/#prepend-function}
309
+ */
310
+ prepend(
311
+ func: (index: number, html: string) => string | Element | JQLite,
312
+ ): this;
285
313
 
286
- /**
287
- * Remove an attribute from each element in the set of matched elements.
288
- *
289
- * @param attributeName An attribute to remove; as of version 1.7, it can be a space-separated list of attributes.
290
- * @see {@link https://api.jquery.com/removeAttr/}
291
- */
292
- removeAttr(attributeName: string): this;
314
+ /**
315
+ * Remove the set of matched elements from the DOM.
316
+ *
317
+ * @param selector A selector expression that filters the set of matched elements to be removed.
318
+ * @see {@link https://api.jquery.com/remove/}
319
+ */
320
+ remove(selector?: string): this;
293
321
 
294
- /**
295
- * Remove a previously-stored piece of data.
296
- *
297
- * @param name A string naming the piece of data to delete or space-separated string naming the pieces of data to delete.
298
- * @see {@link https://api.jquery.com/removeData/#removeData-name}
299
- */
300
- removeData(name: string): this;
301
- /**
302
- * Remove a previously-stored piece of data.
303
- *
304
- * @param list An array of strings naming the pieces of data to delete.
305
- * @see {@link https://api.jquery.com/removeData/#removeData-list}
306
- */
307
- removeData(list: string[]): this;
308
- /**
309
- * Remove all previously-stored piece of data.
310
- * @see {@link https://api.jquery.com/removeData/}
311
- */
312
- removeData(): this;
322
+ /**
323
+ * Remove an attribute from each element in the set of matched elements.
324
+ *
325
+ * @param attributeName An attribute to remove; as of version 1.7, it can be a space-separated list of attributes.
326
+ * @see {@link https://api.jquery.com/removeAttr/}
327
+ */
328
+ removeAttr(attributeName: string): this;
313
329
 
314
- /**
315
- * Replace each element in the set of matched elements with the provided new content and return the set of elements that was removed.
316
- *
317
- * @param newContent The content to insert. May be an HTML string, DOM element, array of DOM elements, or jQuery object.
318
- * @see {@link https://api.jquery.com/replaceWith/#replaceWith-newContent}
319
- */
320
- replaceWith(newContent: JQLite | any[] | Element | Text | string): this;
321
- /**
322
- * Replace each element in the set of matched elements with the provided new content and return the set of elements that was removed.
323
- *
324
- * @param func A function that returns content with which to replace the set of matched elements.
325
- * @see {@link https://api.jquery.com/replaceWith/#replaceWith-function}
326
- */
327
- replaceWith(func: () => Element): this;
330
+ /**
331
+ * Remove a previously-stored piece of data.
332
+ *
333
+ * @param name A string naming the piece of data to delete or space-separated string naming the pieces of data to delete.
334
+ * @see {@link https://api.jquery.com/removeData/#removeData-name}
335
+ */
336
+ removeData(name: string): this;
337
+ /**
338
+ * Remove a previously-stored piece of data.
339
+ *
340
+ * @param list An array of strings naming the pieces of data to delete.
341
+ * @see {@link https://api.jquery.com/removeData/#removeData-list}
342
+ */
343
+ removeData(list: string[]): this;
344
+ /**
345
+ * Remove all previously-stored piece of data.
346
+ * @see {@link https://api.jquery.com/removeData/}
347
+ */
348
+ removeData(): this;
328
349
 
329
- /**
330
- * Get the combined text contents of each element in the set of matched elements, including their descendants.
331
- * @see {@link https://api.jquery.com/text/#text}
332
- */
333
- text(): string;
334
- /**
335
- * Set the content of each element in the set of matched elements to the specified text.
336
- *
337
- * @param text The text to set as the content of each matched element. When Number or Boolean is supplied, it will be converted to a String representation.
338
- * @see {@link https://api.jquery.com/text/#text-text}
339
- */
340
- text(text: string | number | boolean): this;
341
- /**
342
- * Set the content of each element in the set of matched elements to the specified text.
343
- *
344
- * @param func A function returning the text content to set. Receives the index position of the element in the set and the old text value as arguments.
345
- * @see {@link https://api.jquery.com/text/#text-function}
346
- */
347
- text(func: (index: number, text: string) => string): this;
350
+ /**
351
+ * Replace each element in the set of matched elements with the provided new content and return the set of elements that was removed.
352
+ *
353
+ * @param newContent The content to insert. May be an HTML string, DOM element, array of DOM elements, or jQuery object.
354
+ * @see {@link https://api.jquery.com/replaceWith/#replaceWith-newContent}
355
+ */
356
+ replaceWith(newContent: JQLite | any[] | Element | Text | string): this;
357
+ /**
358
+ * Replace each element in the set of matched elements with the provided new content and return the set of elements that was removed.
359
+ *
360
+ * @param func A function that returns content with which to replace the set of matched elements.
361
+ * @see {@link https://api.jquery.com/replaceWith/#replaceWith-function}
362
+ */
363
+ replaceWith(func: () => Element): this;
348
364
 
349
- /**
350
- * Execute all handlers attached to an element for an event.
351
- *
352
- * @param eventType A string containing a JavaScript event type, such as click or submit.
353
- * @param extraParameters An array of additional parameters to pass along to the event handler.
354
- * @see {@link https://api.jquery.com/triggerHandler/#triggerHandler-eventType-extraParameters}
355
- */
356
- triggerHandler(eventType: string, ...extraParameters: any[]): Object;
357
- /**
358
- * Execute all handlers attached to an element for an event.
359
- *
360
- * @param event A jQuery.Event object.
361
- * @param extraParameters An array of additional parameters to pass along to the event handler.
362
- * @see {@link https://api.jquery.com/triggerHandler/#triggerHandler-event-extraParameters}
363
- */
364
- triggerHandler(event: Event, ...extraParameters: any[]): Object;
365
+ /**
366
+ * Get the combined text contents of each element in the set of matched elements, including their descendants.
367
+ * @see {@link https://api.jquery.com/text/#text}
368
+ */
369
+ text(): string;
370
+ /**
371
+ * Set the content of each element in the set of matched elements to the specified text.
372
+ *
373
+ * @param text The text to set as the content of each matched element. When Number or Boolean is supplied, it will be converted to a String representation.
374
+ * @see {@link https://api.jquery.com/text/#text-text}
375
+ */
376
+ text(text: string | number | boolean): this;
377
+ /**
378
+ * Set the content of each element in the set of matched elements to the specified text.
379
+ *
380
+ * @param func A function returning the text content to set. Receives the index position of the element in the set and the old text value as arguments.
381
+ * @see {@link https://api.jquery.com/text/#text-function}
382
+ */
383
+ text(func: (index: number, text: string) => string): this;
365
384
 
366
- /**
367
- * Remove a previously-attached event handler from the elements.
368
- *
369
- * @param eventType A string containing a JavaScript event type, such as click or submit.
370
- * @param handler The function that is to be no longer executed.
371
- * @see {@link https://api.jquery.com/unbind/#unbind-eventType-handler}
372
- */
373
- unbind(eventType?: string, handler?: (eventObject: Event) => any): this;
374
- /**
375
- * Remove a previously-attached event handler from the elements.
376
- *
377
- * @param eventType A string containing a JavaScript event type, such as click or submit.
378
- * @param fls Unbinds the corresponding 'return false' function that was bound using .bind( eventType, false ).
379
- * @see {@link https://api.jquery.com/unbind/#unbind-eventType-false}
380
- */
381
- unbind(eventType: string, fls: boolean): this;
382
- /**
383
- * Remove a previously-attached event handler from the elements.
384
- *
385
- * @param evt A JavaScript event object as passed to an event handler.
386
- * @see {@link https://api.jquery.com/unbind/#unbind-event}
387
- */
388
- unbind(evt: any): this;
385
+ /**
386
+ * Execute all handlers attached to an element for an event.
387
+ *
388
+ * @param eventType A string containing a JavaScript event type, such as click or submit.
389
+ * @param extraParameters An array of additional parameters to pass along to the event handler.
390
+ * @see {@link https://api.jquery.com/triggerHandler/#triggerHandler-eventType-extraParameters}
391
+ */
392
+ triggerHandler(eventType: string, ...extraParameters: any[]): Object;
393
+ /**
394
+ * Execute all handlers attached to an element for an event.
395
+ *
396
+ * @param event A jQuery.Event object.
397
+ * @param extraParameters An array of additional parameters to pass along to the event handler.
398
+ * @see {@link https://api.jquery.com/triggerHandler/#triggerHandler-event-extraParameters}
399
+ */
400
+ triggerHandler(event: Event, ...extraParameters: any[]): Object;
389
401
 
390
- /**
391
- * Get the current value of the first element in the set of matched elements.
392
- * @see {@link https://api.jquery.com/val/#val}
393
- */
394
- val(): any;
395
- /**
396
- * Set the value of each element in the set of matched elements.
397
- *
398
- * @param value A string of text, an array of strings or number corresponding to the value of each matched element to set as selected/checked.
399
- * @see {@link https://api.jquery.com/val/#val-value}
400
- */
401
- val(value: string | string[] | number): this;
402
- /**
403
- * Set the value of each element in the set of matched elements.
404
- *
405
- * @param func A function returning the value to set. this is the current element. Receives the index position of the element in the set and the old value as arguments.
406
- * @see {@link https://api.jquery.com/val/#val-function}
407
- */
408
- val(func: (index: number, value: string) => string): this;
402
+ /**
403
+ * Remove a previously-attached event handler from the elements.
404
+ *
405
+ * @param eventType A string containing a JavaScript event type, such as click or submit.
406
+ * @param handler The function that is to be no longer executed.
407
+ * @see {@link https://api.jquery.com/unbind/#unbind-eventType-handler}
408
+ */
409
+ unbind(eventType?: string, handler?: (eventObject: Event) => any): this;
410
+ /**
411
+ * Remove a previously-attached event handler from the elements.
412
+ *
413
+ * @param eventType A string containing a JavaScript event type, such as click or submit.
414
+ * @param fls Unbinds the corresponding 'return false' function that was bound using .bind( eventType, false ).
415
+ * @see {@link https://api.jquery.com/unbind/#unbind-eventType-false}
416
+ */
417
+ unbind(eventType: string, fls: boolean): this;
418
+ /**
419
+ * Remove a previously-attached event handler from the elements.
420
+ *
421
+ * @param evt A JavaScript event object as passed to an event handler.
422
+ * @see {@link https://api.jquery.com/unbind/#unbind-event}
423
+ */
424
+ unbind(evt: any): this;
409
425
 
410
- /**
411
- * Wrap an HTML structure around each element in the set of matched elements.
412
- *
413
- * @param wrappingElement A selector, element, HTML string, or jQuery object specifying the structure to wrap around the matched elements.
414
- * @see {@link https://api.jquery.com/wrap/#wrap-wrappingElement}
415
- */
416
- wrap(wrappingElement: JQLite | Element | string): this;
426
+ /**
427
+ * Get the current value of the first element in the set of matched elements.
428
+ * @see {@link https://api.jquery.com/val/#val}
429
+ */
430
+ val(): any;
431
+ /**
432
+ * Set the value of each element in the set of matched elements.
433
+ *
434
+ * @param value A string of text, an array of strings or number corresponding to the value of each matched element to set as selected/checked.
435
+ * @see {@link https://api.jquery.com/val/#val-value}
436
+ */
437
+ val(value: string | string[] | number): this;
438
+ /**
439
+ * Set the value of each element in the set of matched elements.
440
+ *
441
+ * @param func A function returning the value to set. this is the current element. Receives the index position of the element in the set and the old value as arguments.
442
+ * @see {@link https://api.jquery.com/val/#val-function}
443
+ */
444
+ val(func: (index: number, value: string) => string): this;
417
445
 
418
- // Undocumented
419
- length: number;
446
+ /**
447
+ * Wrap an HTML structure around each element in the set of matched elements.
448
+ *
449
+ * @param wrappingElement A selector, element, HTML string, or jQuery object specifying the structure to wrap around the matched elements.
450
+ * @see {@link https://api.jquery.com/wrap/#wrap-wrappingElement}
451
+ */
452
+ wrap(wrappingElement: JQLite | Element | string): this;
420
453
 
421
- // TODO: events, how to define?
422
- // $destroy
423
- controller(name?: string): any;
424
- injector(): ng.auto.IInjectorService;
425
- /**
426
- * Returns the `$scope` of the element.
427
- *
428
- * **IMPORTANT**: Requires `debugInfoEnabled` to be true.
429
- *
430
- * See https://docs.angularjs.org/guide/production#disabling-debug-data for more information.
431
- */
432
- scope<T extends ng.IScope>(): T;
433
- /**
434
- * Returns the `$scope` of the element.
435
- *
436
- * **IMPORTANT**: Requires `debugInfoEnabled` to be true.
437
- *
438
- * See https://docs.angularjs.org/guide/production#disabling-debug-data for more information.
439
- */
440
- isolateScope<T extends ng.IScope>(): T;
454
+ // Undocumented
455
+ length: number;
441
456
 
442
- inheritedData(key: string, value: any): this;
443
- inheritedData(obj: { [key: string]: any }): this;
444
- inheritedData(key?: string): any;
457
+ // TODO: events, how to define?
458
+ // $destroy
459
+ controller(name?: string): any;
460
+ injector(): ng.auto.IInjectorService;
461
+ /**
462
+ * Returns the `$scope` of the element.
463
+ *
464
+ * **IMPORTANT**: Requires `debugInfoEnabled` to be true.
465
+ *
466
+ * See https://docs.angularjs.org/guide/production#disabling-debug-data for more information.
467
+ */
468
+ scope<T extends ng.IScope>(): T;
469
+ /**
470
+ * Returns the `$scope` of the element.
471
+ *
472
+ * **IMPORTANT**: Requires `debugInfoEnabled` to be true.
473
+ *
474
+ * See https://docs.angularjs.org/guide/production#disabling-debug-data for more information.
475
+ */
476
+ isolateScope<T extends ng.IScope>(): T;
477
+
478
+ inheritedData(key: string, value: any): this;
479
+ inheritedData(obj: { [key: string]: any }): this;
480
+ inheritedData(key?: string): any;
445
481
  }
446
482
 
447
483
  interface JQueryStatic {
448
- (element: string | Element | Document | Window | JQLite | ArrayLike<Element> | (() => void)): JQLite;
484
+ (
485
+ element:
486
+ | string
487
+ | Element
488
+ | Document
489
+ | Window
490
+ | JQLite
491
+ | ArrayLike<Element>
492
+ | (() => void),
493
+ ): JQLite;
449
494
  }