@angular-wave/angular.ts 0.0.40 → 0.0.41

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.
@@ -1,4 +1,11 @@
1
- import { JQLite, dealoc, kebabToCamel } from "./jqlite";
1
+ import {
2
+ JQLite,
3
+ dealoc,
4
+ kebabToCamel,
5
+ cleanElementData,
6
+ getOrSetCacheData,
7
+ removeElementData,
8
+ } from "./jqlite";
2
9
  import { angularInit } from "../../loader";
3
10
  import { createInjector } from "../../injector";
4
11
  import { publishExternalAPI } from "../../public";
@@ -474,61 +481,63 @@ describe("jqLite", () => {
474
481
  expect(elm.data("key2")).toBe("value2");
475
482
  });
476
483
 
477
- it("should remove user data on cleanData()", () => {
478
- const selected = JQLite([a, b, c]);
484
+ describe("cleanElementData helper", () => {
485
+ it("should remove user data on cleanElementData()", () => {
486
+ const selected = JQLite([a, b, c]);
479
487
 
480
- selected.data("prop", "value");
481
- JQLite(b).data("prop", "new value");
488
+ selected.data("prop", "value");
489
+ JQLite(b).data("prop", "new value");
482
490
 
483
- JQLite.cleanData(selected);
491
+ cleanElementData(selected);
484
492
 
485
- expect(JQLite(a).data("prop")).toBeUndefined();
486
- expect(JQLite(b).data("prop")).toBeUndefined();
487
- expect(JQLite(c).data("prop")).toBeUndefined();
488
- });
489
-
490
- it("should remove event handlers on cleanData()", () => {
491
- const selected = JQLite([a, b, c]);
492
-
493
- let log = "";
494
- const elm = JQLite(b);
495
- elm.on("click", () => {
496
- log += "click;";
493
+ expect(JQLite(a).data("prop")).toBeUndefined();
494
+ expect(JQLite(b).data("prop")).toBeUndefined();
495
+ expect(JQLite(c).data("prop")).toBeUndefined();
497
496
  });
498
- JQLite.cleanData(selected);
499
497
 
500
- browserTrigger(b, "click");
501
- expect(log).toBe("");
502
- });
498
+ it("should remove event handlers on cleanElementData()", () => {
499
+ const selected = JQLite([a, b, c]);
503
500
 
504
- it("should remove user data & event handlers on cleanData()", () => {
505
- const selected = JQLite([a, b, c]);
501
+ let log = "";
502
+ const elm = JQLite(b);
503
+ elm.on("click", () => {
504
+ log += "click;";
505
+ });
506
+ cleanElementData(selected);
506
507
 
507
- let log = "";
508
- const elm = JQLite(b);
509
- elm.on("click", () => {
510
- log += "click;";
508
+ browserTrigger(b, "click");
509
+ expect(log).toBe("");
511
510
  });
512
511
 
513
- selected.data("prop", "value");
514
- JQLite(a).data("prop", "new value");
512
+ it("should remove user data & event handlers on cleanElementData()", () => {
513
+ const selected = JQLite([a, b, c]);
515
514
 
516
- JQLite.cleanData(selected);
515
+ let log = "";
516
+ const elm = JQLite(b);
517
+ elm.on("click", () => {
518
+ log += "click;";
519
+ });
517
520
 
518
- browserTrigger(b, "click");
519
- expect(log).toBe("");
521
+ selected.data("prop", "value");
522
+ JQLite(a).data("prop", "new value");
520
523
 
521
- expect(JQLite(a).data("prop")).toBeUndefined();
522
- expect(JQLite(b).data("prop")).toBeUndefined();
523
- expect(JQLite(c).data("prop")).toBeUndefined();
524
- });
524
+ cleanElementData(selected);
525
525
 
526
- it("should not break on cleanData(), if element has no data", () => {
527
- const selected = JQLite([a, b, c]);
528
- spyOn(CACHE, "get").and.returnValue(undefined);
529
- expect(() => {
530
- JQLite.cleanData(selected);
531
- }).not.toThrow();
526
+ browserTrigger(b, "click");
527
+ expect(log).toBe("");
528
+
529
+ expect(JQLite(a).data("prop")).toBeUndefined();
530
+ expect(JQLite(b).data("prop")).toBeUndefined();
531
+ expect(JQLite(c).data("prop")).toBeUndefined();
532
+ });
533
+
534
+ it("should not break on cleanElementData(), if element has no data", () => {
535
+ const selected = JQLite([a, b, c]);
536
+ spyOn(CACHE, "get").and.returnValue(undefined);
537
+ expect(() => {
538
+ cleanElementData(selected);
539
+ }).not.toThrow();
540
+ });
532
541
  });
533
542
 
534
543
  it("should add and remove data on SVGs", () => {
@@ -553,32 +562,35 @@ describe("jqLite", () => {
553
562
  expect(CACHE.size).toEqual(initial);
554
563
  });
555
564
 
556
- it("should provide the non-wrapped data calls", () => {
557
- const node = document.createElement("div");
558
- document.body.appendChild(node);
565
+ describe("removeElementData/getOrSetCacheData helpers", () => {
566
+ it("should provide the non-wrapped data calls", () => {
567
+ const node = document.createElement("div");
568
+ document.body.appendChild(node);
559
569
 
560
- expect(CACHE.has(node[EXPANDO])).toBe(false);
561
- expect(JQLite.data(node, "foo")).toBeUndefined();
562
- expect(CACHE.has(node[EXPANDO])).toBe(false);
570
+ expect(CACHE.has(node[EXPANDO])).toBe(false);
571
+ debugger;
572
+ expect(getOrSetCacheData(node, "foo")).toBeUndefined();
573
+ expect(CACHE.has(node[EXPANDO])).toBe(false);
563
574
 
564
- JQLite.data(node, "foo", "bar");
575
+ getOrSetCacheData(node, "foo", "bar");
565
576
 
566
- expect(CACHE.has(node[EXPANDO])).toBe(true);
567
- expect(JQLite.data(node, "foo")).toBe("bar");
568
- expect(JQLite(node).data("foo")).toBe("bar");
577
+ expect(CACHE.has(node[EXPANDO])).toBe(true);
578
+ expect(getOrSetCacheData(node, "foo")).toBe("bar");
579
+ expect(JQLite(node).data("foo")).toBe("bar");
569
580
 
570
- expect(JQLite.data(node)).toBe(JQLite(node).data());
581
+ expect(getOrSetCacheData(node)).toBe(JQLite(node).data());
571
582
 
572
- JQLite.removeData(node, "foo");
573
- expect(JQLite.data(node, "foo")).toBeUndefined();
583
+ removeElementData(node, "foo");
584
+ expect(getOrSetCacheData(node, "foo")).toBeUndefined();
574
585
 
575
- JQLite.data(node, "bar", "baz");
576
- JQLite.removeData(node);
577
- JQLite.removeData(node);
578
- expect(JQLite.data(node, "bar")).toBeUndefined();
586
+ getOrSetCacheData(node, "bar", "baz");
587
+ removeElementData(node);
588
+ removeElementData(node);
589
+ expect(getOrSetCacheData(node, "bar")).toBeUndefined();
579
590
 
580
- JQLite(node).remove();
581
- expect(CACHE.has(node[EXPANDO])).toBe(false);
591
+ JQLite(node).remove();
592
+ expect(CACHE.has(node[EXPANDO])).toBe(false);
593
+ });
582
594
  });
583
595
 
584
596
  it("should emit $destroy event if element removed via remove()", function () {
@@ -1274,26 +1286,6 @@ describe("jqLite", () => {
1274
1286
  expect(log).toEqual("childEnter;");
1275
1287
  });
1276
1288
  });
1277
-
1278
- it("should throw an error if eventData or a selector is passed", () => {
1279
- const elm = JQLite(a);
1280
- const anObj = {};
1281
- const aString = "";
1282
- const aValue = 45;
1283
- const callback = () => {};
1284
-
1285
- expect(() => {
1286
- elm.on("click", anObj, callback);
1287
- }).toThrow();
1288
-
1289
- expect(() => {
1290
- elm.on("click", null, aString, callback);
1291
- }).toThrow();
1292
-
1293
- expect(() => {
1294
- elm.on("click", aValue, callback);
1295
- }).toThrow();
1296
- });
1297
1289
  });
1298
1290
 
1299
1291
  describe("off", () => {
package/src/types.js ADDED
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @typedef {Object} angular.InjectorService
3
+ * @property {function(Function, boolean=): string[]} annotate Annotate a function or an array of inline annotations.
4
+ * @property {function(any[]): string[]} annotate Annotate an inline annotated function.
5
+ * @property {function(string, string=): T} get Get a service by name.
6
+ * @property {function(new (...args: any[]): T, any=): T} instantiate Instantiate a type constructor with optional locals.
7
+ * @property {function(Injectable<Function | ((...args: any[]) => T)>, any=, any=): T} invoke Invoke a function with optional context and locals.
8
+ * @property {function(Array<IModule | string | Injectable<(...args: any[]) => void>>): void} loadNewModules Add and load new modules to the injector.
9
+ * @property {Object.<string, IModule>} modules A map of all the modules loaded into the injector.
10
+ * @property {boolean} strictDi Indicates if strict dependency injection is enforced.
11
+ */
12
+
13
+ export {};
@@ -6,7 +6,11 @@ export function packageStyles(options: any): {
6
6
  };
7
7
  export function pendClasses(classes: any, fix: any, isPrefix: any): string;
8
8
  export function removeFromArray(arr: any, val: any): void;
9
- export function stripCommentsFromElement(element: any): any;
9
+ export function stripCommentsFromElement(element: any): JQLite | {
10
+ toString(): string;
11
+ eq(index: any): JQLite;
12
+ length: number;
13
+ };
10
14
  export function extractElementNode(element: any): any;
11
15
  export function applyAnimationClassesFactory(): (element: any, options: any) => void;
12
16
  export function prepareAnimationOptions(options: any): any;
@@ -48,3 +52,4 @@ export const ANIMATION_DURATION_PROP: string;
48
52
  export const TRANSITION_DELAY_PROP: string;
49
53
  export const TRANSITION_DURATION_PROP: string;
50
54
  export const ngMinErr: (arg0: string, arg1: string, ...arg2: any[]) => Error;
55
+ import { JQLite } from "../shared/jqlite/jqlite";
@@ -162,7 +162,7 @@ export class $CompileProvider {
162
162
  * @returns {object} `this` for chaining
163
163
  */
164
164
  addPropertySecurityContext: (elementName: string, propertyName: string, ctx: string) => object;
165
- $get: (string | (($injector: any, $interpolate: any, $exceptionHandler: any, $templateRequest: any, $parse: any, $controller: any, $rootScope: any, $sce: any, $animate: any) => ($compileNodes: string | NodeList, transcludeFn: any, maxPriority: any, ignoreDirective: any, previousCompileContext: any) => (scope: any, cloneConnectFn: any, options: any) => any))[];
165
+ $get: (string | (($injector: any, $interpolate: any, $exceptionHandler: any, $templateRequest: any, $parse: any, $controller: any, $rootScope: any, $sce: any, $animate: any) => ($compileNodes: string | NodeList, transcludeFn: any, maxPriority: any, ignoreDirective: any, previousCompileContext: any) => (scope: any, cloneConnectFn: any, options: any) => string | NodeList | JQLite))[];
166
166
  }
167
167
  export namespace $CompileProvider {
168
168
  let $inject: string[];
@@ -171,3 +171,4 @@ export namespace $CompileProvider {
171
171
  * Function that aggregates all linking fns for a compilation root (nodeList)
172
172
  */
173
173
  export type CompositeLinkFn = Function;
174
+ import { JQLite } from "../../shared/jqlite/jqlite";
@@ -4,11 +4,11 @@ export const ngIncludeDirective: (string | (($templateRequest: any, $anchorScrol
4
4
  terminal: boolean;
5
5
  transclude: string;
6
6
  controller: () => void;
7
- compile(element: any, attr: any): (scope: any, $element: any, $attr: any, ctrl: any, $transclude: any) => void;
7
+ compile(_element: any, attr: any): (scope: any, $element: any, _$attr: any, ctrl: any, $transclude: any) => void;
8
8
  }))[];
9
9
  export const ngIncludeFillContentDirective: (string | (($compile: any) => {
10
10
  restrict: string;
11
11
  priority: number;
12
12
  require: string;
13
- link(scope: any, $element: any, $attr: any, ctrl: any): void;
13
+ link(scope: any, $element: any, _$attr: any, ctrl: any): void;
14
14
  }))[];
@@ -26,7 +26,7 @@
26
26
  */
27
27
  export function $DocumentProvider(this: import("../index").angular.ServiceProvider): void;
28
28
  export class $DocumentProvider {
29
- $get: () => any;
29
+ $get: () => JQLite;
30
30
  }
31
31
  /**
32
32
  * @private
@@ -40,3 +40,4 @@ export class $$IsDocumentHiddenProvider {
40
40
  export namespace angular {
41
41
  type DocumentProvider = import("../index").angular.ServiceProvider;
42
42
  }
43
+ import { JQLite } from "../shared/jqlite/jqlite";
@@ -11,35 +11,99 @@ export function kebabToCamel(name: string): string;
11
11
  */
12
12
  export function snakeToCamel(name: string): string;
13
13
  /**
14
- * Checks if the string contains HTML tags or entities.
15
- * @param {string} html
16
- * @returns {boolean}
14
+ * JQLite both a function and an array-like data structure for manipulation of DOM, linking elements to expando cache,
15
+ * and execution of chain functions.
16
+ *
17
+ * @param {string|Element|Document|Window|JQLite|ArrayLike<Element>|(() => void)} element
18
+ * @returns {JQLite}
17
19
  */
18
- export function isTextNode(html: string): boolean;
19
- export function JQLiteBuildFragment(html: any, context: any): any;
20
- export function JQLite(element: any): any;
20
+ export function JQLite(element: string | Element | Document | Window | JQLite | ArrayLike<Element> | (() => void)): JQLite;
21
21
  export class JQLite {
22
- constructor(element: any);
23
- ready: typeof JQLiteReady;
22
+ /**
23
+ * JQLite both a function and an array-like data structure for manipulation of DOM, linking elements to expando cache,
24
+ * and execution of chain functions.
25
+ *
26
+ * @param {string|Element|Document|Window|JQLite|ArrayLike<Element>|(() => void)} element
27
+ * @returns {JQLite}
28
+ */
29
+ constructor(element: string | Element | Document | Window | JQLite | ArrayLike<Element> | (() => void));
30
+ /**
31
+ * Remove all child nodes of the set of matched elements from the DOM and clears CACHE data, associated with the node.
32
+ * @returns {JQLite} The current instance of JQLite.
33
+ */
34
+ empty(): JQLite;
35
+ /**
36
+ * Returns the `$scope` of the element.
37
+ * @returns {import("../../core/scope/scope").Scope}
38
+ */
39
+ scope(): import("../../core/scope/scope").Scope;
40
+ /**
41
+ * Returns the isolate `$scope` of the element.
42
+ * @returns {import("../../core/scope/scope").Scope}
43
+ */
44
+ isolateScope(): import("../../core/scope/scope").Scope;
45
+ /**
46
+ * Return instance of controller attached to element
47
+ * @param {string} [name] - Controller name
48
+ * @returns {any}
49
+ */
50
+ controller(name?: string): any;
51
+ /**
52
+ * Return instance of injector attached to element
53
+ * @returns {import('../../types').angular.InjectorService}
54
+ */
55
+ injector(): import("../../types").angular.InjectorService;
24
56
  toString(): string;
25
- eq(index: any): any;
57
+ eq(index: any): JQLite;
26
58
  length: number;
27
- push: (...items: undefined[]) => number;
28
- sort: (compareFn?: (a: undefined, b: undefined) => number) => undefined[];
29
- splice: {
30
- (start: number, deleteCount?: number): undefined[];
31
- (start: number, deleteCount: number, ...items: undefined[]): undefined[];
32
- };
33
59
  }
60
+ /**
61
+ * Removes expando data from this element. If key is provided, only
62
+ * its field is removed. If data is empty, also removes `ExpandoStore`
63
+ * from cache.
64
+ * @param {Element} element
65
+ * @param {string} [name] - key of field to remove
66
+ */
67
+ export function removeElementData(element: Element, name?: string): void;
68
+ /**
69
+ * Checks if the string contains HTML tags or entities.
70
+ * @param {string} html
71
+ * @returns {boolean} True if the string is plain text, false if it contains HTML tags or entities.
72
+ */
73
+ export function isTextNode(html: string): boolean;
74
+ /**
75
+ * @param {string} html
76
+ * @returns {DocumentFragment}
77
+ */
78
+ export function buildFragment(html: string): DocumentFragment;
34
79
  /**
35
80
  * @param {Element} element
36
81
  * @param {boolean} [onlyDescendants]
37
82
  * @returns {void}
38
83
  */
39
84
  export function dealoc(element: Element, onlyDescendants?: boolean): void;
40
- export function JQLiteRemove(element: any, keepData: any): void;
85
+ /**
86
+ * Gets or sets cache data for a given element.
87
+ *
88
+ * @param {Element} element - The DOM element to get or set data on.
89
+ * @param {string|Object} key - The key (as a string) to get/set or an object for mass-setting.
90
+ * @param {*} [value] - The value to set. If not provided, the function acts as a getter.
91
+ * @returns {*} - The retrieved data if acting as a getter. Otherwise, returns undefined.
92
+ */
93
+ export function getOrSetCacheData(element: Element, key: string | any, value?: any): any;
94
+ /**
95
+ *
96
+ * @param {Element} element
97
+ * @param {boolean} keepData
98
+ */
99
+ export function removeElement(element: Element, keepData?: boolean): void;
41
100
  export function getBooleanAttrName(element: any, name: any): any;
42
- export function JQLiteCleanData(nodes: any): void;
101
+ /**
102
+ * Takes an array of elements, calls any `$destroy` event handlers, removes any data in cache, and finally removes any
103
+ * listeners.
104
+ * @param {NodeListOf<Element>} nodes
105
+ */
106
+ export function cleanElementData(nodes: NodeListOf<Element>): void;
43
107
  /**
44
108
  * @param {string} elementStr
45
109
  * @returns {string} Returns the string representation of the element.
@@ -48,9 +112,7 @@ export function startingTag(elementStr: string): string;
48
112
  /**
49
113
  * Return the DOM siblings between the first and last node in the given array.
50
114
  * @param {Array} nodes An array-like object
51
- * @returns {Array} the inputted object or a JQLite collection containing the nodes
115
+ * @returns {JQLite} the inputted object or a JQLite collection containing the nodes
52
116
  */
53
- export function getBlockNodes(nodes: any[]): any[];
117
+ export function getBlockNodes(nodes: any[]): JQLite;
54
118
  export const BOOLEAN_ATTR: {};
55
- declare function JQLiteReady(fn: any): void;
56
- export {};
@@ -0,0 +1,34 @@
1
+ export namespace angular {
2
+ type InjectorService = {
3
+ /**
4
+ * Annotate a function or an array of inline annotations.
5
+ */
6
+ annotate: (arg0: Function, arg1: boolean | undefined) => string[];
7
+ /**
8
+ * Get a service by name.
9
+ */
10
+ get: (arg0: string, arg1: string | undefined) => T;
11
+ /**
12
+ * , any=): T} instantiate Instantiate a type constructor with optional locals.
13
+ */
14
+ "": new () => (...args: any[]) => any;
15
+ /**
16
+ * Invoke a function with optional context and locals.
17
+ */
18
+ invoke: (arg0: Injectable<Function | ((...args: any[]) => T)>, arg1: any | undefined, arg2: any | undefined) => T;
19
+ /**
20
+ * Add and load new modules to the injector.
21
+ */
22
+ loadNewModules: (arg0: Array<IModule | string | Injectable<(...args: any[]) => void>>) => void;
23
+ /**
24
+ * A map of all the modules loaded into the injector.
25
+ */
26
+ modules: {
27
+ [x: string]: IModule;
28
+ };
29
+ /**
30
+ * Indicates if strict dependency injection is enforced.
31
+ */
32
+ strictDi: boolean;
33
+ };
34
+ }
@@ -2121,62 +2121,6 @@ declare namespace angular {
2121
2121
  // AUTO module (angular.js)
2122
2122
  ///////////////////////////////////////////////////////////////////////////
2123
2123
  namespace auto {
2124
- ///////////////////////////////////////////////////////////////////////
2125
- // InjectorService
2126
- // see http://docs.angularjs.org/api/AUTO.$injector
2127
- ///////////////////////////////////////////////////////////////////////
2128
- interface IInjectorService {
2129
- annotate(fn: Function, strictDi?: boolean): string[];
2130
- annotate(inlineAnnotatedFunction: any[]): string[];
2131
- get<T>(name: string, caller?: string): T;
2132
- get(name: "$anchorScroll"): IAnchorScrollService;
2133
- get(name: "$cacheFactory"): ICacheFactoryService;
2134
- get(name: "$compile"): ICompileService;
2135
- get(name: "$controller"): IControllerService;
2136
- get(name: "$document"): IDocumentService;
2137
- get(name: "$exceptionHandler"): IExceptionHandlerService;
2138
- get(name: "$filter"): IFilterService;
2139
- get(name: "$http"): IHttpService;
2140
- get(name: "$httpBackend"): IHttpBackendService;
2141
- get(name: "$httpParamSerializer"): IHttpParamSerializer;
2142
- get(name: "$httpParamSerializerJQLike"): IHttpParamSerializer;
2143
- get(name: "$interpolate"): IInterpolateService;
2144
- get(name: "$interval"): IIntervalService;
2145
- get(name: "$location"): ILocationService;
2146
- get(name: "$log"): LogService;
2147
- get(name: "$parse"): IParseService;
2148
- get(name: "$q"): IQService;
2149
- get(name: "$rootElement"): IRootElementService;
2150
- get(name: "$rootScope"): IRootScopeService;
2151
- get(name: "$sce"): ISCEService;
2152
- get(name: "$sceDelegate"): ISCEDelegateService;
2153
- get(name: "$templateCache"): ITemplateCacheService;
2154
- get(name: "$templateRequest"): ITemplateRequestService;
2155
- get(name: "$timeout"): ITimeoutService;
2156
- get(name: "$window"): IWindowService;
2157
- get<T>(name: "$xhrFactory"): IXhrFactory<T>;
2158
- has(name: string): boolean;
2159
- instantiate<T>(
2160
- typeConstructor: { new (...args: any[]): T },
2161
- locals?: any,
2162
- ): T;
2163
- invoke<T = any>(
2164
- func: Injectable<Function | ((...args: any[]) => T)>,
2165
- context?: any,
2166
- locals?: any,
2167
- ): T;
2168
- /**
2169
- * Add the specified modules to the current injector.
2170
- * This method will add each of the injectables to the injector and execute all of the config and run blocks for each module passed to the method.
2171
- * @param modules A module, module name or annotated injection function.
2172
- */
2173
- loadNewModules(
2174
- modules: Array<IModule | string | Injectable<(...args: any[]) => void>>,
2175
- ): void;
2176
- /** An object map of all the modules that have been loaded into the injector. */
2177
- modules: { [moduleName: string]: IModule };
2178
- strictDi: boolean;
2179
- }
2180
2124
 
2181
2125
  ///////////////////////////////////////////////////////////////////////
2182
2126
  // ProvideService
@@ -105,13 +105,7 @@ interface JQLite {
105
105
  */
106
106
  detach(selector?: string): this;
107
107
 
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;
113
-
114
- /**
108
+ /**
115
109
  * Reduce the set of matched elements to the one at the specified index.
116
110
  *
117
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.
@@ -149,13 +143,6 @@ interface JQLite {
149
143
  */
150
144
  html(func: (index: number, oldhtml: string) => string): this;
151
145
 
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;
158
-
159
146
  /**
160
147
  * Attach an event handler function for one or more events to the selected elements.
161
148
  *
@@ -451,21 +438,8 @@ interface JQLite {
451
438
  */
452
439
  wrap(wrappingElement: JQLite | Element | string): this;
453
440
 
454
- // Undocumented
455
441
  length: number;
456
442
 
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
443
  /**
470
444
  * Returns the `$scope` of the element.
471
445
  *
@@ -479,16 +453,3 @@ interface JQLite {
479
453
  inheritedData(obj: { [key: string]: any }): this;
480
454
  inheritedData(key?: string): any;
481
455
  }
482
-
483
- interface JQueryStatic {
484
- (
485
- element:
486
- | string
487
- | Element
488
- | Document
489
- | Window
490
- | JQLite
491
- | ArrayLike<Element>
492
- | (() => void),
493
- ): JQLite;
494
- }