@angular-wave/angular.ts 0.11.0 → 0.12.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 (45) hide show
  1. package/@types/angular.d.ts +64 -51
  2. package/@types/animations/animate.d.ts +1 -351
  3. package/@types/animations/animation.d.ts +2 -2
  4. package/@types/animations/interface.d.ts +72 -0
  5. package/@types/animations/{animate-queue.d.ts → queue/animate-queue.d.ts} +2 -7
  6. package/@types/animations/queue/interface.d.ts +50 -0
  7. package/@types/core/compile/attributes.d.ts +5 -5
  8. package/@types/core/compile/compile.d.ts +4 -4
  9. package/@types/core/controller/controller.d.ts +1 -1
  10. package/@types/core/di/di.d.ts +26 -0
  11. package/@types/core/di/injector.d.ts +0 -11
  12. package/@types/core/di/internal-injector.d.ts +2 -2
  13. package/@types/core/di/ng-module/ng-module.d.ts +197 -0
  14. package/@types/core/sanitize/interface.d.ts +8 -0
  15. package/@types/core/sanitize/sanitize-uri.d.ts +5 -2
  16. package/@types/core/scope/interface.d.ts +2 -2
  17. package/@types/core/scope/scope.d.ts +5 -2
  18. package/@types/directive/form/form.d.ts +7 -7
  19. package/@types/directive/if/if.d.ts +2 -2
  20. package/@types/directive/include/include.d.ts +4 -4
  21. package/@types/directive/messages/messages.d.ts +18 -22
  22. package/@types/directive/model/model.d.ts +3 -3
  23. package/@types/directive/scope/scope.d.ts +4 -0
  24. package/@types/directive/show-hide/show-hide.d.ts +3 -4
  25. package/@types/directive/switch/switch.d.ts +3 -5
  26. package/@types/directive/wasm/wasm.d.ts +4 -0
  27. package/@types/{services → directive}/worker/interface.d.ts +1 -0
  28. package/@types/directive/worker/worker.d.ts +18 -8
  29. package/@types/interface.d.ts +14 -15
  30. package/@types/namespace.d.ts +25 -4
  31. package/@types/services/log/log.d.ts +2 -2
  32. package/@types/services/sce/sce.d.ts +4 -82
  33. package/@types/services/sse/sse.d.ts +1 -5
  34. package/@types/services/storage/interface.d.ts +5 -0
  35. package/@types/services/storage/storage.d.ts +19 -0
  36. package/@types/services/stream/interface.d.ts +18 -0
  37. package/@types/shared/dom.d.ts +21 -5
  38. package/@types/shared/strings.d.ts +0 -6
  39. package/@types/shared/utils.d.ts +24 -14
  40. package/dist/angular-ts.esm.js +1448 -1194
  41. package/dist/angular-ts.umd.js +1448 -1194
  42. package/dist/angular-ts.umd.min.js +1 -1
  43. package/package.json +1 -1
  44. package/@types/core/di/ng-module.d.ts +0 -156
  45. package/@types/services/worker/worker.d.ts +0 -31
@@ -1,23 +1,23 @@
1
1
  export class Attributes {
2
2
  static $nonscope: boolean;
3
3
  /**
4
- * @param {ng.Scope} $rootScope
5
- * @param {*} $animate
4
+ * @param {ng.RootScopeService} $rootScope
5
+ * @param {ng.AnimateService} $animate
6
6
  * @param {ng.ExceptionHandlerService} $exceptionHandler
7
7
  * @param {*} $sce
8
8
  * @param {import("../../shared/noderef.js").NodeRef} [nodeRef]
9
9
  * @param {Object} [attributesToCopy]
10
10
  */
11
11
  constructor(
12
- $rootScope: ng.Scope,
13
- $animate: any,
12
+ $rootScope: ng.RootScopeService,
13
+ $animate: ng.AnimateService,
14
14
  $exceptionHandler: ng.ExceptionHandlerService,
15
15
  $sce: any,
16
16
  nodeRef?: import("../../shared/noderef.js").NodeRef,
17
17
  attributesToCopy?: any,
18
18
  );
19
19
  $rootScope: import("../scope/scope.js").Scope;
20
- $animate: any;
20
+ $animate: import("../../interface.ts").AnimateService;
21
21
  $exceptionHandler: import("../../services/exception/interface.ts").ErrorHandler;
22
22
  $sce: any;
23
23
  $attr: {};
@@ -124,15 +124,15 @@ export class CompileProvider {
124
124
  $get: (
125
125
  | string
126
126
  | ((
127
- $injector: import("../../core/di/internal-injector.js").InjectorService,
127
+ $injector: ng.InjectorService,
128
128
  $interpolate: any,
129
129
  $exceptionHandler: import("../../services/exception/exception-handler.js").ErrorHandler,
130
- $templateRequest: any,
131
- $parse: import("../parse/interface.ts").ParseService,
130
+ $templateRequest: ng.TemplateRequestService,
131
+ $parse: ng.ParseService,
132
132
  $controller: any,
133
133
  $rootScope: import("../scope/scope.js").Scope,
134
134
  $sce: any,
135
- $animate: any,
135
+ $animate: ng.AnimateService,
136
136
  ) => (
137
137
  compileNode: string | Element | Node | ChildNode | NodeList,
138
138
  transcludeFn?: import("./inteface.ts").TranscludeFn,
@@ -34,7 +34,7 @@ export class ControllerProvider {
34
34
  $get: (
35
35
  | string
36
36
  | ((
37
- $injector: import("../../core/di/internal-injector.js").InjectorService,
37
+ $injector: ng.InjectorService,
38
38
  ) => import("./interface.ts").ControllerService)
39
39
  )[];
40
40
  /**
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @param {Function} fn
3
+ * @returns {string}
4
+ */
5
+ export function stringifyFn(fn: Function): string;
6
+ /**
7
+ * @param {Function} fn
8
+ * @returns {Array<any>}
9
+ */
10
+ export function extractArgs(fn: Function): Array<any>;
11
+ /**
12
+ * @param {Function} func
13
+ * @returns {boolean}
14
+ */
15
+ export function isClass(func: Function): boolean;
16
+ /**
17
+ * @param {any} fn
18
+ * @param {boolean} [strictDi]
19
+ * @param {string} [name]
20
+ * @returns {Array<string>}
21
+ */
22
+ export function annotate(
23
+ fn: any,
24
+ strictDi?: boolean,
25
+ name?: string,
26
+ ): Array<string>;
@@ -8,15 +8,4 @@ export function createInjector(
8
8
  modulesToLoad: Array<string | Function>,
9
9
  strictDi?: boolean,
10
10
  ): InjectorService;
11
- /**
12
- * @param {any} fn
13
- * @param {boolean} [strictDi]
14
- * @param {String} [name]
15
- * @returns {Array<string>}
16
- */
17
- export function annotate(
18
- fn: any,
19
- strictDi?: boolean,
20
- name?: string,
21
- ): Array<string>;
22
11
  import { InjectorService } from "./internal-injector.js";
@@ -45,9 +45,9 @@ declare class AbstractInjector {
45
45
  strictDi: boolean;
46
46
  /** @type {string[]} */
47
47
  path: string[];
48
- /** @type {Object.<string, import("./ng-module.js").NgModule>} */
48
+ /** @type {Object.<string, ng.NgModule>} */
49
49
  modules: {
50
- [x: string]: import("./ng-module.js").NgModule;
50
+ [x: string]: import("./ng-module/ng-module.js").NgModule;
51
51
  };
52
52
  /**
53
53
  * Get a service by name.
@@ -0,0 +1,197 @@
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
+ /**
12
+ * Modules are collections of application configuration information for components:
13
+ * controllers, directives, filters, etc. They provide recipes for the injector
14
+ * to do the actual instantiation. A module itself has no behaviour but only state.
15
+ * 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
+ */
21
+ export class NgModule {
22
+ /**
23
+ * @param {string} name - Name of the module
24
+ * @param {Array<string>} requires - List of modules which the injector will load before the current module
25
+ * @param {ng.Injectable<any>} [configFn]
26
+ */
27
+ constructor(
28
+ name: string,
29
+ requires: Array<string>,
30
+ configFn?: ng.Injectable<any>,
31
+ );
32
+ /**
33
+ * Name of the current module.
34
+ * @type {string}
35
+ */
36
+ name: string;
37
+ /**
38
+ * Array of module names that this module depends on.
39
+ * @type {string[]}
40
+ */
41
+ requires: string[];
42
+ /**
43
+ * Holds a collection of tasks, required to instantiate an angular component
44
+ * @type {!Array<Array<*>>}
45
+ */
46
+ invokeQueue: Array<Array<any>>;
47
+ /** @type {!Array<Array<*>>} */
48
+ configBlocks: Array<Array<any>>;
49
+ /** @type {!Array.<ng.Injectable<any>>} */
50
+ runBlocks: Array<ng.Injectable<any>>;
51
+ services: any[];
52
+ wasmModules: any[];
53
+ /**
54
+ * @param {string} name
55
+ * @param {any} object
56
+ * @returns {NgModule}
57
+ */
58
+ value(name: string, object: any): NgModule;
59
+ /**
60
+ * @param {string} name
61
+ * @param {any} object
62
+ * @returns {NgModule}
63
+ */
64
+ constant(name: string, object: any): NgModule;
65
+ /**
66
+ *
67
+ * @param {ng.Injectable<any>} configFn
68
+ * @returns {NgModule}
69
+ */
70
+ config(configFn: ng.Injectable<any>): NgModule;
71
+ /**
72
+ * @param {ng.Injectable<any>} block
73
+ * @returns {NgModule}
74
+ */
75
+ run(block: ng.Injectable<any>): NgModule;
76
+ /**
77
+ * @param {string} name
78
+ * @param {ng.Component} options
79
+ * @returns {NgModule}
80
+ */
81
+ component(name: string, options: ng.Component): NgModule;
82
+ /**
83
+ * @param {string} name
84
+ * @param {ng.Injectable<any>} providerFunction
85
+ * @returns {NgModule}
86
+ */
87
+ factory(name: string, providerFunction: ng.Injectable<any>): NgModule;
88
+ /**
89
+ * @param {string} name
90
+ * @param {ng.Injectable<any>} serviceFunction
91
+ * @returns {NgModule}
92
+ */
93
+ service(name: string, serviceFunction: ng.Injectable<any>): NgModule;
94
+ /**
95
+ * @param {string} name
96
+ * @param {ng.Injectable<any>} providerType
97
+ * @returns {NgModule}
98
+ */
99
+ provider(name: string, providerType: ng.Injectable<any>): NgModule;
100
+ /**
101
+ * @param {string} name
102
+ * @param {ng.Injectable<any>} decorFn
103
+ * @returns {NgModule}
104
+ */
105
+ decorator(name: string, decorFn: ng.Injectable<any>): NgModule;
106
+ /**
107
+ * @param {string} name
108
+ * @param {ng.Injectable<any>} directiveFactory
109
+ * @returns {NgModule}
110
+ */
111
+ directive(name: string, directiveFactory: ng.Injectable<any>): NgModule;
112
+ /**
113
+ * @param {string} name
114
+ * @param {ng.Injectable<any>} animationFactory
115
+ * @returns {NgModule}
116
+ */
117
+ animation(name: string, animationFactory: ng.Injectable<any>): NgModule;
118
+ /**
119
+ * @param {string} name
120
+ * @param {ng.Injectable<any>} filterFn
121
+ * @return {NgModule}
122
+ */
123
+ filter(name: string, filterFn: ng.Injectable<any>): NgModule;
124
+ /**
125
+ * @param {string} name
126
+ * @param {ng.Injectable<any>} ctlFn
127
+ * @returns {NgModule}
128
+ */
129
+ controller(name: string, ctlFn: ng.Injectable<any>): NgModule;
130
+ /**
131
+ * Register a named WebAssembly module that will be instantiated via $provide.
132
+ *
133
+ * @param {string} name - The injectable name used to access the instantiated WebAssembly module.
134
+ *
135
+ * @param {string} src - URL of the `.wasm` file to fetch and instantiate.
136
+ *
137
+ * @param {Object<string, any>} [imports] WebAssembly import object, passed to `WebAssembly.instantiate` or `WebAssembly.instantiateStreaming`.
138
+ *
139
+ * @param {Object<string, any>} [opts] - Configuration object.
140
+ *
141
+ * Supported keys:
142
+ * - **raw**: `boolean`
143
+ * - `false` (default): the injectable resolves to `instance.exports`
144
+ * (ideal for plain WASM modules).
145
+ * - `true`: the injectable resolves to the full instantiation result:
146
+ * `{ instance, exports, module }`
147
+ * (required for runtimes such as Go, Emscripten, wasm-bindgen, etc).
148
+ *
149
+ * @returns {NgModule}
150
+ */
151
+ wasm(
152
+ name: string,
153
+ src: string,
154
+ imports?: {
155
+ [x: string]: any;
156
+ },
157
+ opts?: {
158
+ [x: string]: any;
159
+ },
160
+ ): NgModule;
161
+ /**
162
+ * Register a named worker that will be instantiated via $provide.
163
+ *
164
+ * @param {string} name
165
+ * @param {string | URL} scriptPath
166
+ * @param {ng.WorkerConfig} [config]
167
+ * @returns {NgModule}
168
+ */
169
+ worker(
170
+ name: string,
171
+ scriptPath: string | URL,
172
+ config?: ng.WorkerConfig,
173
+ ): NgModule;
174
+ /**
175
+ * @param {string} name
176
+ * @param {Function} ctor
177
+ * @returns {NgModule}
178
+ */
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;
186
+ /**
187
+ * @param {string} name
188
+ * @param {Function} ctor
189
+ * @param {ng.StorageBackend} backendOrConfig
190
+ * @returns {NgModule}
191
+ */
192
+ store(
193
+ name: string,
194
+ ctor: Function,
195
+ backendOrConfig: ng.StorageBackend,
196
+ ): NgModule;
197
+ }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Sanitizer function that processes a URI string and optionally
3
+ * treats it as a media URL.
4
+ */
5
+ export type SanitizerFn = (
6
+ uri: string | null | undefined,
7
+ isMediaUrl?: boolean,
8
+ ) => string | null | undefined;
@@ -33,8 +33,11 @@ export class SanitizeUriProvider implements ServiceProvider {
33
33
  regexp?: RegExp | undefined,
34
34
  ): RegExp | SanitizeUriProvider;
35
35
  /**
36
- * @returns {import("./interface").SanitizerFn}
36
+ * @returns {import("./interface.ts").SanitizerFn}
37
37
  */
38
- $get(): any;
38
+ $get: (
39
+ | string
40
+ | (($window: ng.WindowService) => import("./interface.ts").SanitizerFn)
41
+ )[];
39
42
  }
40
43
  export type ServiceProvider = import("../../interface.ts").ServiceProvider;
@@ -5,10 +5,10 @@ export interface AsyncQueueTask {
5
5
  fn: (...args: any[]) => any;
6
6
  locals: Record<string, any>;
7
7
  }
8
- export type ListenerFunction = (newValue: any, originalTarget: object) => void;
8
+ export type ListenerFn = (newValue?: any, originalTarget?: object) => void;
9
9
  export interface Listener {
10
10
  originalTarget: object;
11
- listenerFn: ListenerFunction;
11
+ listenerFn: ListenerFn;
12
12
  watchFn: CompiledExpression;
13
13
  id: number;
14
14
  scopeId: number;
@@ -15,6 +15,7 @@ export function createScope(target?: any, context?: Scope): Scope;
15
15
  */
16
16
  export function isUnsafeGlobal(target: any): boolean;
17
17
  export const $postUpdateQueue: any[];
18
+ export let rootScope: any;
18
19
  export class RootScopeProvider {
19
20
  rootScope: Scope;
20
21
  $get: (
@@ -89,6 +90,7 @@ export class Scope {
89
90
  /** @type {boolean} */
90
91
  $$destroyed: boolean;
91
92
  scheduled: any[];
93
+ $scopename: any;
92
94
  /** @private */
93
95
  private propertyMap;
94
96
  /**
@@ -128,12 +130,12 @@ export class Scope {
128
130
  * function is invoked when changes to that property are detected.
129
131
  *
130
132
  * @param {string} watchProp - An expression to be watched in the context of this model.
131
- * @param {import('./interface.ts').ListenerFunction} [listenerFn] - A function to execute when changes are detected on watched context.
133
+ * @param {ng.ListenerFn} [listenerFn] - A function to execute when changes are detected on watched context.
132
134
  * @param {boolean} [lazy] - A flag to indicate if the listener should be invoked immediately. Defaults to false.
133
135
  */
134
136
  $watch(
135
137
  watchProp: string,
136
- listenerFn?: import("./interface.ts").ListenerFunction,
138
+ listenerFn?: ng.ListenerFn,
137
139
  lazy?: boolean,
138
140
  ): () => void;
139
141
  $new(childInstance: any): any;
@@ -181,5 +183,6 @@ export class Scope {
181
183
  * @returns {Scope|undefined}
182
184
  */
183
185
  $getById(id: string | number): Scope | undefined;
186
+ $searchByName(name: any): any;
184
187
  #private;
185
188
  }
@@ -75,16 +75,16 @@ export class FormController {
75
75
  static $inject: string[];
76
76
  /**
77
77
  * @param {Element} $element
78
- * @param {import("../../core/compile/attributes.js").Attributes} $attrs
79
- * @param {import("../../core/scope/scope.js").Scope} $scope
80
- * @param {*} $animate
78
+ * @param {ng.Attributes} $attrs
79
+ * @param {ng.Scope} $scope
80
+ * @param {ng.AnimateService} $animate
81
81
  * @param {*} $interpolate
82
82
  */
83
83
  constructor(
84
84
  $element: Element,
85
- $attrs: import("../../core/compile/attributes.js").Attributes,
86
- $scope: import("../../core/scope/scope.js").Scope,
87
- $animate: any,
85
+ $attrs: ng.Attributes,
86
+ $scope: ng.Scope,
87
+ $animate: ng.AnimateService,
88
88
  $interpolate: any,
89
89
  );
90
90
  $$controls: any[];
@@ -103,7 +103,7 @@ export class FormController {
103
103
  /** @type {FormController|Object} */
104
104
  $$parentForm: FormController | any;
105
105
  $$element: Element;
106
- $$animate: any;
106
+ $$animate: import("../../interface.ts").AnimateService;
107
107
  $error: {};
108
108
  $$success: {};
109
109
  $pending: any;
@@ -1,8 +1,8 @@
1
1
  /**
2
- * @param {*} $animate
2
+ * @param {ng.AnimateService} $animate
3
3
  * @returns {ng.Directive}
4
4
  */
5
- export function ngIfDirective($animate: any): ng.Directive;
5
+ export function ngIfDirective($animate: ng.AnimateService): ng.Directive;
6
6
  export namespace ngIfDirective {
7
7
  let $inject: string[];
8
8
  }
@@ -1,15 +1,15 @@
1
1
  /**
2
2
  *
3
- * @param {*} $templateRequest
3
+ * @param {ng.TemplateRequestService} $templateRequest
4
4
  * @param {import("../../services/anchor-scroll/anchor-scroll.js").AnchorScrollFunction} $anchorScroll
5
- * @param {*} $animate
5
+ * @param {ng.AnimateService} $animate
6
6
  * @param {import('../../services/exception/interface.ts').ErrorHandler} $exceptionHandler
7
7
  * @returns {import('../../interface.ts').Directive}
8
8
  */
9
9
  export function ngIncludeDirective(
10
- $templateRequest: any,
10
+ $templateRequest: ng.TemplateRequestService,
11
11
  $anchorScroll: import("../../services/anchor-scroll/anchor-scroll.js").AnchorScrollFunction,
12
- $animate: any,
12
+ $animate: ng.AnimateService,
13
13
  $exceptionHandler: import("../../services/exception/interface.ts").ErrorHandler,
14
14
  ): import("../../interface.ts").Directive;
15
15
  export namespace ngIncludeDirective {
@@ -1,8 +1,10 @@
1
- export function ngMessagesDirective($animate: any): {
2
- require: string;
3
- restrict: string;
4
- controller: ($element: any, $scope: any, $attrs: any) => NgMessageCtrl;
5
- };
1
+ /**
2
+ * @param {ng.AnimateService} $animate
3
+ * @returns {ng.Directive<NgMessageCtrl>}
4
+ */
5
+ export function ngMessagesDirective(
6
+ $animate: ng.AnimateService,
7
+ ): ng.Directive<NgMessageCtrl>;
6
8
  export namespace ngMessagesDirective {
7
9
  let $inject: string[];
8
10
  }
@@ -18,32 +20,26 @@ export namespace ngMessagesIncludeDirective {
18
20
  let $inject_1: string[];
19
21
  export { $inject_1 as $inject };
20
22
  }
21
- export const ngMessageDirective: (
22
- any: any,
23
- ) => import("../../interface.ts").Directive;
24
- export const ngMessageExpDirective: (
25
- any: any,
26
- ) => import("../../interface.ts").Directive;
27
- export const ngMessageDefaultDirective: (
28
- any: any,
29
- ) => import("../../interface.ts").Directive;
23
+ export const ngMessageDirective: (any: any) => ng.Directive;
24
+ export const ngMessageExpDirective: (any: any) => ng.Directive;
25
+ export const ngMessageDefaultDirective: (any: any) => ng.Directive;
30
26
  declare class NgMessageCtrl {
31
27
  /**
32
28
  * @param {Element} $element
33
- * @param {import('../../core/scope/scope.js').Scope} $scope
34
- * @param {import('../../core/compile/attributes').Attributes} $attrs
35
- * @param {*} $animate
29
+ * @param {ng.Scope} $scope
30
+ * @param {ng.Attributes} $attrs
31
+ * @param {ng.AnimateService} $animate
36
32
  */
37
33
  constructor(
38
34
  $element: Element,
39
- $scope: import("../../core/scope/scope.js").Scope,
40
- $attrs: any,
41
- $animate: any,
35
+ $scope: ng.Scope,
36
+ $attrs: ng.Attributes,
37
+ $animate: ng.AnimateService,
42
38
  );
43
39
  $element: Element;
44
40
  $scope: import("../../interface.ts").Scope;
45
- $attrs: any;
46
- $animate: any;
41
+ $attrs: ng.Attributes;
42
+ $animate: import("../../interface.ts").AnimateService;
47
43
  latestKey: number;
48
44
  nextAttachId: number;
49
45
  messages: {};
@@ -54,7 +54,7 @@ export class NgModelController {
54
54
  * @param {import('../../core/compile/attributes.js').Attributes} $attr
55
55
  * @param {Element} $element
56
56
  * @param {import("../../core/parse/interface.ts").ParseService} $parse
57
- * @param {*} $animate
57
+ * @param {ng.AnimateService} $animate
58
58
  * @param {*} $interpolate
59
59
  */
60
60
  constructor(
@@ -63,7 +63,7 @@ export class NgModelController {
63
63
  $attr: import("../../core/compile/attributes.js").Attributes,
64
64
  $element: Element,
65
65
  $parse: import("../../core/parse/interface.ts").ParseService,
66
- $animate: any,
66
+ $animate: ng.AnimateService,
67
67
  $interpolate: any,
68
68
  );
69
69
  /** @type {any} The actual value from the control's view */
@@ -139,7 +139,7 @@ export class NgModelController {
139
139
  $$scope: import("../../core/scope/scope.js").Scope;
140
140
  $$attr: import("../../core/compile/attributes.js").Attributes;
141
141
  $$element: Element;
142
- $$animate: any;
142
+ $$animate: import("../../interface.ts").AnimateService;
143
143
  $$parse: import("../../core/parse/interface.ts").ParseService;
144
144
  $$exceptionHandler: import("../../services/exception/interface.ts").ErrorHandler;
145
145
  $$hasNativeValidators: boolean;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * @return {ng.Directive}
3
+ */
4
+ export function ngScopeDirective(): ng.Directive;
@@ -1,9 +1,8 @@
1
1
  /**
2
- * @returns {import('../../interface.ts').Directive}
2
+ * @param {ng.AnimateService} $animate
3
+ * @returns {ng.Directive}
3
4
  */
4
- export function ngShowDirective(
5
- $animate: any,
6
- ): import("../../interface.ts").Directive;
5
+ export function ngShowDirective($animate: ng.AnimateService): ng.Directive;
7
6
  export namespace ngShowDirective {
8
7
  let $inject: string[];
9
8
  }
@@ -1,10 +1,8 @@
1
1
  /**
2
- * @param {*} $animate
3
- * @returns {import('../../interface.ts').Directive}
2
+ * @param {ng.AnimateService} $animate
3
+ * @returns {ng.Directive}
4
4
  */
5
- export function ngSwitchDirective(
6
- $animate: any,
7
- ): import("../../interface.ts").Directive;
5
+ export function ngSwitchDirective($animate: ng.AnimateService): ng.Directive;
8
6
  export namespace ngSwitchDirective {
9
7
  let $inject: string[];
10
8
  }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * @return {ng.Directive}
3
+ */
4
+ export function ngWasmDirective(): ng.Directive;
@@ -9,4 +9,5 @@ export interface WorkerConnection {
9
9
  post(data: any): void;
10
10
  terminate(): void;
11
11
  restart(): void;
12
+ config: WorkerConfig;
12
13
  }
@@ -1,15 +1,25 @@
1
1
  /**
2
- * ngWorker directive factory
3
2
  * Usage: <div ng-worker="workerName" data-params="{{ expression }}" data-on-result="callback($result)"></div>
3
+ *
4
+ * @param {ng.ParseService} $parse
5
+ * @param {ng.LogService} $log
6
+ * @returns {ng.Directive}
4
7
  */
5
8
  export function ngWorkerDirective(
6
- $worker: any,
7
- $parse: any,
8
- $log: any,
9
- ): {
10
- restrict: string;
11
- link(scope: any, element: any, attrs: any): void;
12
- };
9
+ $parse: ng.ParseService,
10
+ $log: ng.LogService,
11
+ ): ng.Directive;
13
12
  export namespace ngWorkerDirective {
14
13
  let $inject: string[];
15
14
  }
15
+ /**
16
+ * Creates a managed Web Worker connection.
17
+ *
18
+ * @param {string | URL} scriptPath
19
+ * @param {ng.WorkerConfig} [config]
20
+ * @returns {ng.WorkerConnection}
21
+ */
22
+ export function createWorkerConnection(
23
+ scriptPath: string | URL,
24
+ config?: ng.WorkerConfig,
25
+ ): ng.WorkerConnection;