@angular-wave/angular.ts 0.12.0 → 0.14.0

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 (61) hide show
  1. package/@types/angular.d.ts +3 -3
  2. package/@types/animations/animation.d.ts +1 -1
  3. package/@types/animations/raf-scheduler.d.ts +1 -3
  4. package/@types/core/compile/attributes.d.ts +2 -2
  5. package/@types/core/compile/compile.d.ts +2 -2
  6. package/@types/core/di/ng-module/ng-module.d.ts +33 -36
  7. package/@types/core/filter/filter.d.ts +12 -13
  8. package/@types/core/scope/interface.d.ts +1 -1
  9. package/@types/core/scope/scope.d.ts +9 -10
  10. package/@types/directive/aria/aria.d.ts +3 -3
  11. package/@types/directive/bind/bind.d.ts +2 -2
  12. package/@types/directive/class/class.d.ts +3 -3
  13. package/@types/directive/events/events.d.ts +2 -2
  14. package/@types/directive/form/form.d.ts +12 -2
  15. package/@types/directive/include/include.d.ts +4 -4
  16. package/@types/directive/input/input.d.ts +2 -2
  17. package/@types/directive/messages/messages.d.ts +1 -1
  18. package/@types/directive/model/model.d.ts +26 -20
  19. package/@types/directive/model-options/model-options.d.ts +4 -1
  20. package/@types/directive/options/options.d.ts +4 -4
  21. package/@types/directive/select/select.d.ts +1 -1
  22. package/@types/directive/style/style.d.ts +2 -2
  23. package/@types/directive/worker/interface.d.ts +2 -0
  24. package/@types/directive/worker/worker.d.ts +2 -0
  25. package/@types/filters/interface.d.ts +7 -1
  26. package/@types/interface.d.ts +66 -34
  27. package/@types/namespace.d.ts +60 -13
  28. package/@types/router/common/trace.d.ts +1 -0
  29. package/@types/router/directives/view-directive.d.ts +2 -2
  30. package/@types/router/transition/transition.d.ts +0 -1
  31. package/@types/router/url/url-config.d.ts +1 -1
  32. package/@types/router/url/url-rule.d.ts +0 -10
  33. package/@types/router/url/url-service.d.ts +3 -6
  34. package/@types/router/view/view.d.ts +0 -16
  35. package/@types/services/anchor-scroll/anchor-scroll.d.ts +1 -1
  36. package/@types/services/cookie/cookie.d.ts +80 -0
  37. package/@types/services/cookie/interface.d.ts +12 -0
  38. package/@types/services/exception/exception.d.ts +56 -0
  39. package/@types/services/exception/interface.d.ts +3 -3
  40. package/@types/services/http/http.d.ts +10 -2
  41. package/@types/services/location/location.d.ts +10 -6
  42. package/@types/services/pubsub/pubsub.d.ts +2 -1
  43. package/@types/services/rest/interface.d.ts +17 -0
  44. package/@types/services/rest/rest.d.ts +106 -0
  45. package/@types/services/rest/rfc.d.ts +40 -0
  46. package/@types/services/sce/sce.d.ts +1 -1
  47. package/@types/services/storage/interface.d.ts +1 -0
  48. package/@types/shared/common.d.ts +1 -1
  49. package/@types/shared/dom.d.ts +8 -11
  50. package/@types/shared/hof.d.ts +2 -2
  51. package/@types/shared/interface.d.ts +1 -0
  52. package/@types/shared/noderef.d.ts +1 -0
  53. package/@types/shared/strings.d.ts +6 -8
  54. package/@types/shared/utils.d.ts +73 -25
  55. package/LICENSE +1 -0
  56. package/README.md +3 -90
  57. package/dist/angular-ts.esm.js +10120 -6051
  58. package/dist/angular-ts.umd.js +10120 -6051
  59. package/dist/angular-ts.umd.min.js +1 -1
  60. package/package.json +1 -6
  61. package/@types/services/exception/exception-handler.d.ts +0 -58
@@ -122,14 +122,14 @@ export class Angular {
122
122
  * function that will be invoked by the injector as a `config` block.
123
123
  * See: {@link angular.module modules}
124
124
  * @param {import("./interface.ts").AngularBootstrapConfig} [config]
125
- * @returns {import('./core/di/internal-injector.js').InjectorService} The created injector instance for this application.
125
+ * @returns {ng.InjectorService} The created injector instance for this application.
126
126
  */
127
127
  bootstrap(
128
128
  element: string | Element | Document,
129
129
  modules?: Array<string | any>,
130
130
  config?: import("./interface.ts").AngularBootstrapConfig,
131
- ): import("./core/di/internal-injector.js").InjectorService;
132
- $rootScope: import("./interface.ts").Scope;
131
+ ): ng.InjectorService;
132
+ $rootScope: ng.Scope;
133
133
  $injector: import("./interface.ts").InjectorService;
134
134
  /**
135
135
  * @param {any[]} modules
@@ -8,7 +8,7 @@ export class AnimationProvider {
8
8
  $injector: ng.InjectorService,
9
9
  $$rAFScheduler: import("./raf-scheduler.js").RafScheduler,
10
10
  $$animateCache: any,
11
- ) => (element: any, event: any, options: any) => AnimateRunner)
11
+ ) => (elementParam: any, event: any, options: any) => AnimateRunner)
12
12
  )[];
13
13
  }
14
14
  import { AnimateRunner } from "./runner/animate-runner.js";
@@ -1,10 +1,9 @@
1
1
  /**
2
2
  * @typedef {import('./interface.ts').RafScheduler} RafScheduler
3
- * @typedef {import('../interface.ts').ServiceProvider} ServiceProvider
4
3
  */
5
4
  /**
6
5
  * Service provider that creates a requestAnimationFrame-based scheduler.
7
- * @type {ServiceProvider}
6
+ * @type {ng.ServiceProvider}
8
7
  */
9
8
  export class RafSchedulerProvider {
10
9
  /**
@@ -34,4 +33,3 @@ export class RafSchedulerProvider {
34
33
  $get(): RafScheduler;
35
34
  }
36
35
  export type RafScheduler = import("./interface.ts").RafScheduler;
37
- export type ServiceProvider = import("../interface.ts").ServiceProvider;
@@ -16,9 +16,9 @@ export class Attributes {
16
16
  nodeRef?: import("../../shared/noderef.js").NodeRef,
17
17
  attributesToCopy?: any,
18
18
  );
19
- $rootScope: import("../scope/scope.js").Scope;
19
+ $rootScope: ng.RootScopeService;
20
20
  $animate: import("../../interface.ts").AnimateService;
21
- $exceptionHandler: import("../../services/exception/interface.ts").ErrorHandler;
21
+ $exceptionHandler: import("../../interface.ts").ExceptionHandler;
22
22
  $sce: any;
23
23
  $attr: {};
24
24
  /** @type {import("../../shared/noderef.js").NodeRef} */
@@ -126,11 +126,11 @@ export class CompileProvider {
126
126
  | ((
127
127
  $injector: ng.InjectorService,
128
128
  $interpolate: any,
129
- $exceptionHandler: import("../../services/exception/exception-handler.js").ErrorHandler,
129
+ $exceptionHandler: ng.ExceptionHandlerService,
130
130
  $templateRequest: ng.TemplateRequestService,
131
131
  $parse: ng.ParseService,
132
132
  $controller: any,
133
- $rootScope: import("../scope/scope.js").Scope,
133
+ $rootScope: ng.Scope,
134
134
  $sce: any,
135
135
  $animate: ng.AnimateService,
136
136
  ) => (
@@ -1,22 +1,8 @@
1
- /** @private */
2
- export const INJECTOR_LITERAL: "$injector";
3
- /** @private */
4
- export const COMPILE_LITERAL: "$compileProvider";
5
- /** @private */
6
- export const ANIMATION_LITERAL: "$animateProvider";
7
- /** @private */
8
- export const FILTER_LITERAL: "$filterProvider";
9
- /** @private */
10
- export const CONTROLLER_LITERAL: "$controllerProvider";
11
1
  /**
12
2
  * Modules are collections of application configuration information for components:
13
3
  * controllers, directives, filters, etc. They provide recipes for the injector
14
4
  * to do the actual instantiation. A module itself has no behaviour but only state.
15
5
  * A such, it acts as a data structure between the Angular instance and the injector service.
16
- *
17
- * Since this is an internal structure that is exposed only via the Angular instance,
18
- * it contains no validation of the items it receives. It is up to the instantiator on
19
- * modules to do the actual validation.
20
6
  */
21
7
  export class NgModule {
22
8
  /**
@@ -49,19 +35,19 @@ export class NgModule {
49
35
  /** @type {!Array.<ng.Injectable<any>>} */
50
36
  runBlocks: Array<ng.Injectable<any>>;
51
37
  services: any[];
52
- wasmModules: any[];
38
+ restDefinitions: any[];
53
39
  /**
54
40
  * @param {string} name
55
- * @param {any} object
41
+ * @param {any} object - Allows undefined
56
42
  * @returns {NgModule}
57
43
  */
58
44
  value(name: string, object: any): NgModule;
59
45
  /**
60
46
  * @param {string} name
61
- * @param {any} object
47
+ * @param {Object|string|number} object
62
48
  * @returns {NgModule}
63
49
  */
64
- constant(name: string, object: any): NgModule;
50
+ constant(name: string, object: any | string | number): NgModule;
65
51
  /**
66
52
  *
67
53
  * @param {ng.Injectable<any>} configFn
@@ -117,16 +103,22 @@ export class NgModule {
117
103
  animation(name: string, animationFactory: ng.Injectable<any>): NgModule;
118
104
  /**
119
105
  * @param {string} name
120
- * @param {ng.Injectable<any>} filterFn
106
+ * @param {ng.FilterFactory} filterFn
121
107
  * @return {NgModule}
122
108
  */
123
- filter(name: string, filterFn: ng.Injectable<any>): NgModule;
109
+ filter(name: string, filterFn: ng.FilterFactory): NgModule;
124
110
  /**
125
- * @param {string} name
126
- * @param {ng.Injectable<any>} ctlFn
111
+ * The $controller service is used by Angular to create new controllers.
112
+ * This provider allows controller registration via the register method.
113
+ *
114
+ * @param {string} name Controller name
115
+ * @param {ng.Injectable<ng.ControllerConstructor>} ctlFn Controller constructor fn (optionally decorated with DI annotations in the array notation)
127
116
  * @returns {NgModule}
128
117
  */
129
- controller(name: string, ctlFn: ng.Injectable<any>): NgModule;
118
+ controller(
119
+ name: string,
120
+ ctlFn: ng.Injectable<ng.ControllerConstructor>,
121
+ ): NgModule;
130
122
  /**
131
123
  * Register a named WebAssembly module that will be instantiated via $provide.
132
124
  *
@@ -174,24 +166,29 @@ export class NgModule {
174
166
  /**
175
167
  * @param {string} name
176
168
  * @param {Function} ctor
169
+ * @param {ng.StorageType} type
170
+ * @param {ng.StorageBackend} [backendOrConfig]
177
171
  * @returns {NgModule}
178
172
  */
179
- session(name: string, ctor: Function): NgModule;
180
- /**
181
- * @param {string} name
182
- * @param {Function} ctor
183
- * @returns {NgModule}
184
- */
185
- local(name: string, ctor: Function): NgModule;
173
+ store(
174
+ name: string,
175
+ ctor: Function,
176
+ type: ng.StorageType,
177
+ backendOrConfig?: ng.StorageBackend,
178
+ ): NgModule;
186
179
  /**
187
- * @param {string} name
188
- * @param {Function} ctor
189
- * @param {ng.StorageBackend} backendOrConfig
180
+ * @template T, ID
181
+ * Register a REST resource during module configuration.
182
+ * @param {string} name - Service name
183
+ * @param {string} url - Base URL or URI template
184
+ * @param {ng.EntityClass<T>} entityClass - Optional constructor for mapping JSON
185
+ * @param {Object=} options - Optional RestService options (interceptors, etc)
190
186
  * @returns {NgModule}
191
187
  */
192
- store(
188
+ rest<T, ID>(
193
189
  name: string,
194
- ctor: Function,
195
- backendOrConfig: ng.StorageBackend,
190
+ url: string,
191
+ entityClass: ng.EntityClass<T>,
192
+ options?: any | undefined,
196
193
  ): NgModule;
197
194
  }
@@ -1,3 +1,9 @@
1
+ /**
2
+ * $filterProvider - $filter - provider in module ng
3
+ *
4
+ * Filters are just functions which transform input to an output. However filters need to be Dependency Injected. To achieve this a filter definition consists of a factory function which is annotated with dependencies and is responsible for creating a filter function.
5
+ * @extends {ng.ServiceProvider}
6
+ */
1
7
  export class FilterProvider {
2
8
  static $inject: string[];
3
9
  /**
@@ -6,18 +12,11 @@ export class FilterProvider {
6
12
  constructor($provide: ng.ProvideService);
7
13
  $provide: import("../../interface.ts").Provider;
8
14
  /**
9
- * @param {string|Record<string, ng.FilterFn>} name
10
- * @param {ng.FilterService} [factory]
11
- * @return {import('../../interface.ts').Provider}
15
+ * Register a filter a config phase;
16
+ * @param {string} name
17
+ * @param {ng.FilterFactory} factory
18
+ * @return {ng.FilterProvider}
12
19
  */
13
- register(
14
- name: string | Record<string, ng.FilterFn>,
15
- factory?: ng.FilterService,
16
- ): import("../../interface.ts").Provider;
17
- $get: (
18
- | string
19
- | ((
20
- $injector: import("../../core/di/internal-injector.js").InjectorService,
21
- ) => ng.FilterService)
22
- )[];
20
+ register(name: string, factory: ng.FilterFactory): ng.FilterProvider;
21
+ $get: (string | (($injector: ng.InjectorService) => ng.FilterService))[];
23
22
  }
@@ -7,7 +7,7 @@ export interface AsyncQueueTask {
7
7
  }
8
8
  export type ListenerFn = (newValue?: any, originalTarget?: object) => void;
9
9
  export interface Listener {
10
- originalTarget: object;
10
+ originalTarget: any;
11
11
  listenerFn: ListenerFn;
12
12
  watchFn: CompiledExpression;
13
13
  id: number;
@@ -10,10 +10,16 @@ export function nextId(): number;
10
10
  */
11
11
  export function createScope(target?: any, context?: Scope): Scope;
12
12
  /**
13
+ * @ignore
14
+ * Checks if a target should be excluded from scope observability
13
15
  * @param {any} target
14
16
  * @returns {boolean}
15
17
  */
16
- export function isUnsafeGlobal(target: any): boolean;
18
+ export function isNonScope(target: any): boolean;
19
+ /**
20
+ * Decorator for excluding objects from scope observability
21
+ */
22
+ export const NONSCOPE: "$nonscope";
17
23
  export const $postUpdateQueue: any[];
18
24
  export let rootScope: any;
19
25
  export class RootScopeProvider {
@@ -26,10 +32,6 @@ export class RootScopeProvider {
26
32
  ) => Scope)
27
33
  )[];
28
34
  }
29
- /**
30
- * Decorator for excluding objects from scope observability
31
- */
32
- export const NONSCOPE: "$nonscope";
33
35
  /**
34
36
  * Scope class for the Proxy. It intercepts operations like property access (get)
35
37
  * and property setting (set), and adds support for deep change tracking and
@@ -84,8 +86,6 @@ export class Scope {
84
86
  */
85
87
  $root: Scope;
86
88
  $parent: Scope;
87
- /** @type {import('./interface.ts').AsyncQueueTask[]} */
88
- $$asyncQueue: import("./interface.ts").AsyncQueueTask[];
89
89
  filters: any[];
90
90
  /** @type {boolean} */
91
91
  $$destroyed: boolean;
@@ -141,17 +141,16 @@ export class Scope {
141
141
  $new(childInstance: any): any;
142
142
  $newIsolate(instance: any): any;
143
143
  $transcluded(parentInstance: any): any;
144
- deregisterForeignKey(key: any, id: any): boolean;
145
144
  $eval(expr: any, locals: any): any;
146
145
  /**
147
146
  * @param {Object} newTarget
148
147
  */
149
148
  $merge(newTarget: any): void;
150
149
  /**
151
- * @param {import('../../interface.ts').Expression} expr
150
+ * @param {ng.Expression} expr
152
151
  * @returns {any}
153
152
  */
154
- $apply(expr: import("../../interface.ts").Expression): any;
153
+ $apply(expr: ng.Expression): any;
155
154
  /**
156
155
  * @param {string} name
157
156
  * @param {Function} listener
@@ -22,7 +22,7 @@ export class AriaProvider {
22
22
  $$watchExpr: (
23
23
  attrName: any,
24
24
  ariaAttr: any,
25
- nativeAriaNodeNames: any,
25
+ nativeAriaNodeNamesParam: any,
26
26
  negate: any,
27
27
  ) => (scope: any, elem: any, attr: any) => void;
28
28
  };
@@ -83,10 +83,10 @@ export function ngModelAriaDirective($aria: any): {
83
83
  require: string;
84
84
  priority: number;
85
85
  compile(
86
- elem: any,
86
+ _: any,
87
87
  attr: any,
88
88
  ): {
89
- post(scope: any, elem: any, attr: any, ngModel: any): void;
89
+ post(_: any, elem: any, attrPost: any, ngModel: any): void;
90
90
  };
91
91
  };
92
92
  export namespace ngModelAriaDirective {
@@ -1,7 +1,7 @@
1
1
  /**
2
- * @returns {import('../../interface.ts').Directive}
2
+ * @returns {ng.Directive}
3
3
  */
4
- export function ngBindDirective(): import("../../interface.ts").Directive;
4
+ export function ngBindDirective(): ng.Directive;
5
5
  /**
6
6
  * @returns {import('../../interface.ts').Directive}
7
7
  */
@@ -1,3 +1,3 @@
1
- export const ngClassDirective: import("../../interface.ts").DirectiveFactory;
2
- export const ngClassOddDirective: import("../../interface.ts").DirectiveFactory;
3
- export const ngClassEvenDirective: import("../../interface.ts").DirectiveFactory;
1
+ export const ngClassDirective: ng.DirectiveFactory;
2
+ export const ngClassOddDirective: ng.DirectiveFactory;
3
+ export const ngClassEvenDirective: ng.DirectiveFactory;
@@ -29,6 +29,6 @@ export function createWindowEventDirective(
29
29
  eventName: string,
30
30
  ): ng.Directive;
31
31
  /**
32
- * @type {Record<string, ng.DirectiveFactory>}
32
+ * @type {Record<string, ng.Injectable<any>>}
33
33
  */
34
- export const ngEventDirectives: Record<string, ng.DirectiveFactory>;
34
+ export const ngEventDirectives: Record<string, ng.Injectable<any>>;
@@ -243,7 +243,12 @@ export const formDirective: (
243
243
  formElement: any,
244
244
  attr: any,
245
245
  ) => {
246
- pre: (scope: any, formElement: any, attr: any, ctrls: any) => void;
246
+ pre: (
247
+ scope: any,
248
+ formElementParam: any,
249
+ attrParam: any,
250
+ ctrls: any,
251
+ ) => void;
247
252
  };
248
253
  })
249
254
  )[];
@@ -258,7 +263,12 @@ export const ngFormDirective: (
258
263
  formElement: any,
259
264
  attr: any,
260
265
  ) => {
261
- pre: (scope: any, formElement: any, attr: any, ctrls: any) => void;
266
+ pre: (
267
+ scope: any,
268
+ formElementParam: any,
269
+ attrParam: any,
270
+ ctrls: any,
271
+ ) => void;
262
272
  };
263
273
  })
264
274
  )[];
@@ -3,15 +3,15 @@
3
3
  * @param {ng.TemplateRequestService} $templateRequest
4
4
  * @param {import("../../services/anchor-scroll/anchor-scroll.js").AnchorScrollFunction} $anchorScroll
5
5
  * @param {ng.AnimateService} $animate
6
- * @param {import('../../services/exception/interface.ts').ErrorHandler} $exceptionHandler
7
- * @returns {import('../../interface.ts').Directive}
6
+ * @param {ng.ExceptionHandlerService} $exceptionHandler
7
+ * @returns {ng.Directive}
8
8
  */
9
9
  export function ngIncludeDirective(
10
10
  $templateRequest: ng.TemplateRequestService,
11
11
  $anchorScroll: import("../../services/anchor-scroll/anchor-scroll.js").AnchorScrollFunction,
12
12
  $animate: ng.AnimateService,
13
- $exceptionHandler: import("../../services/exception/interface.ts").ErrorHandler,
14
- ): import("../../interface.ts").Directive;
13
+ $exceptionHandler: ng.ExceptionHandlerService,
14
+ ): ng.Directive;
15
15
  export namespace ngIncludeDirective {
16
16
  let $inject: string[];
17
17
  }
@@ -45,12 +45,12 @@ export function rangeInputType(
45
45
  ctrl: any,
46
46
  ): void;
47
47
  /**
48
- * @param {ng.FilterService} $filter
48
+ * @param {ng.FilterFactory} $filter
49
49
  * @param {ng.ParseService} $parse
50
50
  * @returns {ng.Directive}
51
51
  */
52
52
  export function inputDirective(
53
- $filter: ng.FilterService,
53
+ $filter: ng.FilterFactory,
54
54
  $parse: ng.ParseService,
55
55
  ): ng.Directive;
56
56
  export namespace inputDirective {
@@ -37,7 +37,7 @@ declare class NgMessageCtrl {
37
37
  $animate: ng.AnimateService,
38
38
  );
39
39
  $element: Element;
40
- $scope: import("../../interface.ts").Scope;
40
+ $scope: ng.Scope;
41
41
  $attrs: ng.Attributes;
42
42
  $animate: import("../../interface.ts").AnimateService;
43
43
  latestKey: number;
@@ -5,7 +5,7 @@ export function ngModelDirective(): {
5
5
  priority: number;
6
6
  compile: (element: Element) => {
7
7
  pre: (scope: any, _element: any, attr: any, ctrls: any) => void;
8
- post: (scope: any, element: any, _attr: any, ctrls: any) => void;
8
+ post: (scope: any, elementPost: any, _attr: any, ctrls: any) => void;
9
9
  };
10
10
  };
11
11
  export const ngModelMinErr: (arg0: string, ...arg1: any[]) => Error;
@@ -49,20 +49,20 @@ export class NgModelController {
49
49
  static $nonscope: boolean;
50
50
  static $inject: string[];
51
51
  /**
52
- * @param {import('../../core/scope/scope.js').Scope} $scope
53
- * @param {import('../../services/exception/exception-handler.js').ErrorHandler} $exceptionHandler
54
- * @param {import('../../core/compile/attributes.js').Attributes} $attr
52
+ * @param {ng.Scope} $scope
53
+ * @param {ng.ExceptionHandlerService} $exceptionHandler
54
+ * @param {ng.Attributes} $attr
55
55
  * @param {Element} $element
56
- * @param {import("../../core/parse/interface.ts").ParseService} $parse
56
+ * @param {ng.ParseService} $parse
57
57
  * @param {ng.AnimateService} $animate
58
58
  * @param {*} $interpolate
59
59
  */
60
60
  constructor(
61
- $scope: import("../../core/scope/scope.js").Scope,
62
- $exceptionHandler: import("../../services/exception/exception-handler.js").ErrorHandler,
63
- $attr: import("../../core/compile/attributes.js").Attributes,
61
+ $scope: ng.Scope,
62
+ $exceptionHandler: ng.ExceptionHandlerService,
63
+ $attr: ng.Attributes,
64
64
  $element: Element,
65
- $parse: import("../../core/parse/interface.ts").ParseService,
65
+ $parse: ng.ParseService,
66
66
  $animate: ng.AnimateService,
67
67
  $interpolate: any,
68
68
  );
@@ -72,11 +72,17 @@ export class NgModelController {
72
72
  $modelValue: any;
73
73
  /** @type {any} */
74
74
  $$rawModelValue: any;
75
- $validators: {};
76
- $asyncValidators: {};
77
- $parsers: any[];
78
- $formatters: any[];
79
- $viewChangeListeners: any[];
75
+ /** @type {any} */
76
+ $validators: any;
77
+ /** @type {any} */
78
+ $asyncValidators: any;
79
+ /** @type {Array<any>} */
80
+ $parsers: Array<any>;
81
+ /** @type {Array<any>} */
82
+ $formatters: Array<any>;
83
+ /** @type {Array<any>} */
84
+ $viewChangeListeners: Array<any>;
85
+ /** @type {boolean} */
80
86
  $untouched: boolean;
81
87
  /** @type {boolean} */
82
88
  $touched: boolean;
@@ -123,11 +129,11 @@ export class NgModelController {
123
129
  $$parsedNgModelAssign: (context: any, value: any) => any;
124
130
  /**
125
131
  * @type {import("../../core/parse/interface.ts").CompiledExpression |
126
- * (function(import("../../core/scope/scope.js").Scope): any)}
132
+ * (function(ng.Scope): any)}
127
133
  */
128
134
  $$ngModelGet:
129
135
  | import("../../core/parse/interface.ts").CompiledExpression
130
- | ((arg0: import("../../core/scope/scope.js").Scope) => any);
136
+ | ((arg0: ng.Scope) => any);
131
137
  $$ngModelSet: (context: any, value: any) => any;
132
138
  $$pendingDebounce: number;
133
139
  $$parserValid: boolean;
@@ -135,13 +141,13 @@ export class NgModelController {
135
141
  $$parserName: string;
136
142
  /** @type {number} */
137
143
  $$currentValidationRunId: number;
138
- /** @type {import('../../core/scope/scope.js').Scope} */
139
- $$scope: import("../../core/scope/scope.js").Scope;
140
- $$attr: import("../../core/compile/attributes.js").Attributes;
144
+ /** @type {ng.Scope} */
145
+ $$scope: ng.Scope;
146
+ $$attr: ng.Attributes;
141
147
  $$element: Element;
142
148
  $$animate: import("../../interface.ts").AnimateService;
143
149
  $$parse: import("../../core/parse/interface.ts").ParseService;
144
- $$exceptionHandler: import("../../services/exception/interface.ts").ErrorHandler;
150
+ $$exceptionHandler: import("../../interface.ts").ExceptionHandler;
145
151
  $$hasNativeValidators: boolean;
146
152
  $$classCache: {};
147
153
  $$eventRemovers: Set<any>;
@@ -1,5 +1,8 @@
1
+ /**
2
+ * @returns {ng.Directive}
3
+ */
4
+ export function ngModelOptionsDirective(): ng.Directive;
1
5
  export const defaultModelOptions: ModelOptions;
2
- export function ngModelOptionsDirective(): import("../../interface.ts").Directive;
3
6
  export type ModelOptionsConfig = {
4
7
  /**
5
8
  * - A string specifying which events the input should be bound to. Multiple events can be set using a space-delimited list. The special event 'default' matches the default events belonging to the control.
@@ -1,13 +1,13 @@
1
1
  /**
2
2
  *
3
3
  * @param {ng.CompileService} $compile
4
- * @param {import("../../core/parse/interface.ts").ParseService} $parse
5
- * @returns {import("../../interface.ts").Directive}
4
+ * @param {ng.ParseService} $parse
5
+ * @returns {ng.Directive}
6
6
  */
7
7
  export function ngOptionsDirective(
8
8
  $compile: ng.CompileService,
9
- $parse: import("../../core/parse/interface.ts").ParseService,
10
- ): import("../../interface.ts").Directive;
9
+ $parse: ng.ParseService,
10
+ ): ng.Directive;
11
11
  export namespace ngOptionsDirective {
12
12
  let $inject: string[];
13
13
  }
@@ -8,7 +8,7 @@ export function optionDirective($interpolate: any): {
8
8
  compile(
9
9
  element: any,
10
10
  attr: any,
11
- ): (scope: any, element: any, attr: any) => void;
11
+ ): (scope: any, elemParam: any, attrParam: any) => void;
12
12
  };
13
13
  export namespace optionDirective {
14
14
  let $inject: string[];
@@ -1,4 +1,4 @@
1
1
  /**
2
- * @returns {import('../../interface.ts').Directive}
2
+ * @returns {ng.Directive}
3
3
  */
4
- export function ngStyleDirective(): import("../../interface.ts").Directive;
4
+ export function ngStyleDirective(): ng.Directive;
@@ -4,6 +4,8 @@ export interface WorkerConfig {
4
4
  autoRestart?: boolean;
5
5
  autoTerminate?: boolean;
6
6
  transformMessage?: (data: any) => any;
7
+ logger?: ng.LogService;
8
+ err?: ng.ExceptionHandlerService;
7
9
  }
8
10
  export interface WorkerConnection {
9
11
  post(data: any): void;
@@ -3,11 +3,13 @@
3
3
  *
4
4
  * @param {ng.ParseService} $parse
5
5
  * @param {ng.LogService} $log
6
+ * @param {ng.ExceptionHandlerService} $exceptionHandler
6
7
  * @returns {ng.Directive}
7
8
  */
8
9
  export function ngWorkerDirective(
9
10
  $parse: ng.ParseService,
10
11
  $log: ng.LogService,
12
+ $exceptionHandler: ng.ExceptionHandlerService,
11
13
  ): ng.Directive;
12
14
  export namespace ngWorkerDirective {
13
15
  let $inject: string[];
@@ -5,4 +5,10 @@ export type FilterFn = (input: any, ...args: any[]) => any;
5
5
  /**
6
6
  * A filter factory function that returns a FilterFn.
7
7
  */
8
- export type FilterFactory = (...args: any[]) => FilterFn;
8
+ export type FilterFactory = (...args: any[]) => FilterFn & {
9
+ $$moduleName: string;
10
+ };
11
+ /**
12
+ * A filter service for retrieving filters functions
13
+ */
14
+ export type FilterService = (name: string) => FilterFn;