@angular-wave/angular.ts 0.14.3 → 0.15.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 (69) hide show
  1. package/@types/angular.d.ts +26 -24
  2. package/@types/animations/animate-cache.d.ts +46 -2
  3. package/@types/animations/animate-children-directive.d.ts +4 -4
  4. package/@types/animations/animate-js.d.ts +1 -10
  5. package/@types/animations/animate.d.ts +6 -1
  6. package/@types/animations/interface.d.ts +15 -0
  7. package/@types/animations/runner/animate-runner.d.ts +73 -52
  8. package/@types/animations/shared.d.ts +0 -16
  9. package/@types/core/compile/attributes.d.ts +12 -6
  10. package/@types/core/compile/compile.d.ts +1 -1
  11. package/@types/core/controller/controller.d.ts +1 -1
  12. package/@types/core/interpolate/interface.d.ts +1 -0
  13. package/@types/core/parse/interface.d.ts +1 -1
  14. package/@types/core/parse/interpreter.d.ts +5 -3
  15. package/@types/core/scope/scope.d.ts +13 -13
  16. package/@types/directive/attrs/attrs.d.ts +2 -5
  17. package/@types/directive/class/class.d.ts +3 -3
  18. package/@types/directive/controller/controller.d.ts +2 -2
  19. package/@types/directive/form/form.d.ts +4 -4
  20. package/@types/directive/include/include.d.ts +4 -4
  21. package/@types/directive/messages/messages.d.ts +9 -8
  22. package/@types/directive/model/model.d.ts +5 -5
  23. package/@types/directive/ref/ref.d.ts +5 -8
  24. package/@types/directive/repeat/repeat.d.ts +2 -4
  25. package/@types/directive/script/script.d.ts +2 -2
  26. package/@types/directive/select/select.d.ts +7 -8
  27. package/@types/directive/validators/validators.d.ts +2 -2
  28. package/@types/injection-tokens.d.ts +3 -2
  29. package/@types/interface.d.ts +50 -22
  30. package/@types/namespace.d.ts +42 -6
  31. package/@types/router/directives/state-directives.d.ts +26 -24
  32. package/@types/router/directives/view-directive.d.ts +27 -131
  33. package/@types/router/glob/glob.d.ts +2 -6
  34. package/@types/router/router.d.ts +1 -1
  35. package/@types/router/scroll/interface.d.ts +3 -0
  36. package/@types/router/scroll/view-scroll.d.ts +8 -0
  37. package/@types/router/state/interface.d.ts +25 -126
  38. package/@types/router/state/state-builder.d.ts +4 -1
  39. package/@types/router/state/state-object.d.ts +2 -2
  40. package/@types/router/state/state-queue-manager.d.ts +4 -4
  41. package/@types/router/state/state-registry.d.ts +16 -11
  42. package/@types/router/state/state-service.d.ts +18 -12
  43. package/@types/router/template-factory.d.ts +2 -2
  44. package/@types/router/transition/interface.d.ts +9 -9
  45. package/@types/router/transition/transition-hook.d.ts +11 -0
  46. package/@types/router/transition/transition-service.d.ts +12 -5
  47. package/@types/router/transition/transition.d.ts +17 -13
  48. package/@types/router/url/url-rule.d.ts +12 -9
  49. package/@types/router/url/url-service.d.ts +14 -10
  50. package/@types/router/view/view.d.ts +4 -4
  51. package/@types/services/anchor-scroll/anchor-scroll.d.ts +2 -17
  52. package/@types/services/anchor-scroll/interface.d.ts +15 -0
  53. package/@types/services/cookie/cookie.d.ts +6 -4
  54. package/@types/services/exception/interface.d.ts +3 -3
  55. package/@types/services/log/log.d.ts +7 -3
  56. package/@types/services/pubsub/pubsub.d.ts +18 -13
  57. package/@types/services/rest/rest.d.ts +7 -5
  58. package/@types/services/sce/sce.d.ts +9 -1
  59. package/@types/shared/noderef.d.ts +3 -3
  60. package/@types/shared/strings.d.ts +18 -6
  61. package/@types/shared/utils.d.ts +88 -39
  62. package/@types/shared/validate.d.ts +13 -0
  63. package/dist/angular-ts.esm.js +1522 -1527
  64. package/dist/angular-ts.umd.js +1522 -1527
  65. package/dist/angular-ts.umd.min.js +1 -1
  66. package/dist/angular-ts.umd.min.js.gz +0 -0
  67. package/dist/angular-ts.umd.min.js.map +1 -1
  68. package/package.json +1 -1
  69. package/@types/router/view-scroll.d.ts +0 -12
@@ -1,35 +1,35 @@
1
1
  export class Angular {
2
- /** @public */
3
- public $cache: Map<number, import("./interface.ts").ExpandoStore>;
2
+ /** @private @type {!Array<string|any>} */
3
+ private _bootsrappedModules;
4
4
  /** @public @type {ng.PubSubService} */
5
5
  public $eventBus: ng.PubSubService;
6
+ /** @public @type {ng.InjectorService} */
7
+ public $injector: ng.InjectorService;
6
8
  /**
9
+ * @public
7
10
  * @type {string} `version` from `package.json`
8
11
  */
9
- version: string;
10
- /** @type {!Array<string|any>} */
11
- bootsrappedModules: Array<string | any>;
12
+ public version: string;
12
13
  /**
13
14
  * Gets the controller instance for a given element, if exists. Defaults to "ngControllerController"
14
15
  *
15
- * @type {(element: Element, name: string?) => ng.Scope|undefined}
16
+ * @type {typeof getController}
16
17
  */
17
- getController: (
18
- element: Element,
19
- name: string | null,
20
- ) => ng.Scope | undefined;
18
+ getController: typeof getController;
21
19
  /**
22
20
  * Return instance of InjectorService attached to element
23
- * @type {(Element) => ng.InjectorService}
21
+ * @type {typeof getInjector}
24
22
  */
25
- getInjector: (Element: any) => ng.InjectorService;
23
+ getInjector: typeof getInjector;
26
24
  /**
27
25
  * Gets scope for a given element.
28
- * @type {(Element) => ng.Scope}
26
+ * @type {typeof getScope}
29
27
  */
30
- getScope: (Element: any) => ng.Scope;
28
+ getScope: typeof getScope;
29
+ /** @type {typeof errorHandlingConfig} */
31
30
  errorHandlingConfig: typeof errorHandlingConfig;
32
- $t: Readonly<Record<string, string>>;
31
+ /** @type {ng.InjectionTokens} */
32
+ $t: ng.InjectionTokens;
33
33
  /**
34
34
  *
35
35
  * The `angular.module` is a global place for creating, registering and retrieving AngularTS
@@ -131,16 +131,12 @@ export class Angular {
131
131
  config?: import("./interface.ts").AngularBootstrapConfig,
132
132
  ): ng.InjectorService;
133
133
  $rootScope: ng.Scope;
134
- $injector: import("./interface.ts").InjectorService;
135
134
  /**
136
135
  * @param {any[]} modules
137
- * @param {boolean?} strictDi
138
- * @returns {import("./core/di/internal-injector.js").InjectorService}
136
+ * @param {boolean} [strictDi]
137
+ * @returns {ng.InjectorService}
139
138
  */
140
- injector(
141
- modules: any[],
142
- strictDi: boolean | null,
143
- ): import("./core/di/internal-injector.js").InjectorService;
139
+ injector(modules: any[], strictDi?: boolean): ng.InjectorService;
144
140
  /**
145
141
  * @param {Element|Document} element
146
142
  */
@@ -154,9 +150,15 @@ export class Angular {
154
150
  * or defined on `$scope` injectable.
155
151
  *
156
152
  * @param {string} name
157
- * @returns {ProxyHandler<ng.Scope>|undefined}
153
+ * @returns {Proxy<ng.Scope>|undefined}
158
154
  */
159
- getScopeByName(name: string): ProxyHandler<ng.Scope> | undefined;
155
+ getScopeByName(name: string): ProxyConstructor | undefined;
160
156
  }
157
+ export type ModuleRegistry = {
158
+ [x: string]: NgModule;
159
+ };
160
+ import { getController } from "./shared/dom.js";
161
+ import { getInjector } from "./shared/dom.js";
162
+ import { getScope } from "./shared/dom.js";
161
163
  import { errorHandlingConfig } from "./shared/utils.js";
162
164
  import { NgModule } from "./core/di/ng-module/ng-module.js";
@@ -44,7 +44,51 @@ export function animateCache(): {
44
44
  */
45
45
  put(key: string, value: any, isValid: boolean): void;
46
46
  };
47
- export function AnimateCacheProvider(): void;
48
47
  export class AnimateCacheProvider {
49
- $get: (typeof animateCache)[];
48
+ $get(): {
49
+ /**
50
+ * Generates a unique cache key based on the node's parent and other parameters.
51
+ * @param {HTMLElement} node - The DOM node to generate the cache key for.
52
+ * @param {string} method - The animation method being applied.
53
+ * @param {string} [addClass] - Class to add during the animation.
54
+ * @param {string} [removeClass] - Class to remove during the animation.
55
+ * @returns {string} - The generated cache key.
56
+ */
57
+ cacheKey(
58
+ node: HTMLElement,
59
+ method: string,
60
+ addClass?: string,
61
+ removeClass?: string,
62
+ ): string;
63
+ /**
64
+ * Checks if a cached animation without a duration exists.
65
+ * @param {string} key - The cache key to check.
66
+ * @returns {boolean} - True if an invalid animation is cached, false otherwise.
67
+ */
68
+ containsCachedAnimationWithoutDuration(key: string): boolean;
69
+ /**
70
+ * Clears the cache.
71
+ * @returns {void}
72
+ */
73
+ flush(): void;
74
+ /**
75
+ * Gets the count of a specific cache entry.
76
+ * @param {string} key - The cache key to count.
77
+ * @returns {number} - The count of the cache entry.
78
+ */
79
+ count(key: string): number;
80
+ /**
81
+ * Retrieves a value associated with a specific cache key.
82
+ * @param {string} key - The cache key to retrieve.
83
+ * @returns {any} - The value associated with the cache key.
84
+ */
85
+ get(key: string): any;
86
+ /**
87
+ * Adds or updates a cache entry.
88
+ * @param {string} key - The cache key to add or update.
89
+ * @param {any} value - The value to store.
90
+ * @param {boolean} isValid - Whether the cache entry is valid.
91
+ */
92
+ put(key: string, value: any, isValid: boolean): void;
93
+ };
50
94
  }
@@ -1,10 +1,10 @@
1
1
  /**
2
- * @param {*} $interpolate
3
- * @returns {import("../interface.ts").Directive}
2
+ * @param {ng.InterpolateService} $interpolate
3
+ * @returns {ng.Directive}
4
4
  */
5
5
  export function $$AnimateChildrenDirective(
6
- $interpolate: any,
7
- ): import("../interface.ts").Directive;
6
+ $interpolate: ng.InterpolateService,
7
+ ): ng.Directive;
8
8
  export namespace $$AnimateChildrenDirective {
9
9
  let $inject: string[];
10
10
  }
@@ -3,16 +3,7 @@ export class AnimateJsProvider {
3
3
  constructor($animateProvider: any);
4
4
  $get: (
5
5
  | string
6
- | (($injector: ng.InjectorService) => (
7
- element: any,
8
- event: any,
9
- classes: any,
10
- options: any,
11
- ) => {
12
- $$willAnimate: boolean;
13
- end(): any;
14
- start(): any;
15
- })
6
+ | (($injector: ng.InjectorService) => import("./interface.ts").AnimateJsFn)
16
7
  )[];
17
8
  }
18
9
  export namespace AnimateJsProvider {
@@ -93,7 +93,12 @@ export class AnimateProvider {
93
93
  * @return {RegExp} The current CSS className expression value. If null then there is no expression value
94
94
  */
95
95
  classNameFilter: (expression?: RegExp | undefined, ...args: any[]) => RegExp;
96
- $get: any[];
96
+ $get: (
97
+ | string
98
+ | ((
99
+ $$animateQueue: import("./queue/interface.ts").AnimateQueueService,
100
+ ) => ng.AnimateService)
101
+ )[];
97
102
  }
98
103
  export namespace AnimateProvider {
99
104
  let $inject: string[];
@@ -98,4 +98,19 @@ export interface AnimationOptions {
98
98
  removeClass?: string;
99
99
  to?: Record<string, string | number>;
100
100
  tempClasses: string | string[];
101
+ /** Optional DOM operation callback executed before animation */
102
+ domOperation?: () => void;
103
+ }
104
+ export interface AnimateJsRunner {
105
+ $$willAnimate: true;
106
+ start: () => AnimateRunner;
107
+ end: () => AnimateRunner;
108
+ }
109
+ export interface AnimateJsFn {
110
+ (
111
+ element: HTMLElement,
112
+ event: string,
113
+ classes?: string | null,
114
+ options?: AnimationOptions,
115
+ ): AnimateJsRunner;
101
116
  }
@@ -1,95 +1,116 @@
1
- /**
2
- * Schedule a callback to run on the next animation frame.
3
- * Multiple calls within the same frame are batched together.
4
- *
5
- * @param {VoidFunction} fn - The callback to execute.
6
- */
7
- export function schedule(fn: VoidFunction): void;
8
- /**
9
- * Represents an asynchronous animation operation.
10
- * Provides both callback-based and promise-based completion APIs.
11
- */
12
1
  export class AnimateRunner {
13
2
  /**
14
- * Run an array of animation runners in sequence.
15
- * Each runner waits for the previous one to complete.
3
+ * Executes a list of runners sequentially.
4
+ * Each must complete before the next starts.
16
5
  *
17
- * @param {AnimateRunner[]} runners - Runners to execute in order.
18
- * @param {(ok: boolean) => void} callback - Invoked when all complete or one fails.
6
+ * @param {AnimateRunner[]} runners
7
+ * @param {(ok: boolean) => void} callback
19
8
  */
20
9
  static _chain(
21
10
  runners: AnimateRunner[],
22
11
  callback: (ok: boolean) => void,
23
12
  ): void;
24
13
  /**
25
- * Waits for all animation runners to complete before invoking the callback.
14
+ * Waits until all runners complete.
26
15
  *
27
- * @param {AnimateRunner[]} runners - Active runners to wait for.
28
- * @param {(ok: boolean) => void} callback - Called when all runners complete.
16
+ * @param {AnimateRunner[]} runners
17
+ * @param {(ok: boolean) => void} callback
29
18
  */
30
19
  static _all(runners: AnimateRunner[], callback: (ok: boolean) => void): void;
31
20
  /**
32
- * @param {import("../interface.ts").AnimationHost} [host] - Optional animation host.
21
+ * @param {AnimationHost} [host] - Optional animation host callbacks.
22
+ * @param {boolean} [jsAnimation=false]
23
+ * If true: use RAF/timer ticks.
24
+ * If false: use batched CSS animation ticks.
33
25
  */
34
- constructor(host?: import("../interface.ts").AnimationHost);
35
- /** @type {import("../interface.ts").AnimationHost} */
36
- _host: import("../interface.ts").AnimationHost;
26
+ constructor(host?: AnimationHost, jsAnimation?: boolean);
27
+ /** @type {AnimationHost} */
28
+ _host: AnimationHost;
37
29
  /** @type {Array<(ok: boolean) => void>} */
38
30
  _doneCallbacks: Array<(ok: boolean) => void>;
39
31
  /** @type {RunnerState} */
40
32
  _state: RunnerState;
41
- /** @type {Promise<void>|null} */
42
- _promise: Promise<void> | null;
43
- /** @type {(fn: VoidFunction) => void} */
44
- _schedule: (fn: VoidFunction) => void;
45
33
  /**
46
- * Sets or updates the animation host.
47
- * @param {import("../interface.ts").AnimationHost} host - The host object.
34
+ * Deferred promise used by .then/.catch/.finally.
35
+ * @type {Promise<void>|null}
36
+ * @private
37
+ */
38
+ private _promise;
39
+ _tick: (fn: any) => void;
40
+ /**
41
+ * Sets or replaces the current host.
42
+ * @param {AnimationHost} host
48
43
  */
49
- setHost(host: import("../interface.ts").AnimationHost): void;
44
+ setHost(host: AnimationHost): void;
50
45
  /**
51
- * Registers a callback to be called once the animation completes.
52
- * If the animation is already complete, it's called immediately.
46
+ * Register a completion callback.
47
+ * Fires immediately if animation is already done.
53
48
  *
54
- * @param {(ok: boolean) => void} fn - Completion callback.
49
+ * @param {(ok: boolean) => void} fn
55
50
  */
56
51
  done(fn: (ok: boolean) => void): void;
57
52
  /**
58
- * Notifies the host of animation progress.
59
- * @param {...any} args - Progress arguments.
53
+ * Reports progress to host.
54
+ * @param {...any} args
60
55
  */
61
56
  progress(...args: any[]): void;
62
- /** Pauses the animation, if supported by the host. */
57
+ /** Pause underlying animation (if supported). */
63
58
  pause(): void;
64
- /** Resumes the animation, if supported by the host. */
59
+ /** Resume underlying animation (if supported). */
65
60
  resume(): void;
66
- /** Ends the animation successfully. */
61
+ /**
62
+ * Ends the animation successfully.
63
+ * Equivalent to user choosing to finish it immediately.
64
+ */
67
65
  end(): void;
68
- /** Cancels the animation. */
69
- cancel(): void;
70
66
  /**
71
- * Marks the animation as complete on the next animation frame.
72
- * @param {boolean} [status=true] - True if successful, false if canceled.
67
+ * Cancels the animation.
73
68
  */
74
- complete(status?: boolean): void;
69
+ cancel(): void;
75
70
  /**
76
- * Returns a promise that resolves or rejects when the animation completes.
77
- * @returns {Promise<void>} Promise resolved on success or rejected on cancel.
71
+ * Schedule animation completion.
72
+ *
73
+ * @param {boolean} [status=true]
78
74
  */
79
- getPromise(): Promise<void>;
80
- /** @inheritdoc */
81
- then(onFulfilled: any, onRejected: any): Promise<void>;
82
- /** @inheritdoc */
83
- catch(onRejected: any): Promise<void>;
84
- /** @inheritdoc */
85
- finally(onFinally: any): Promise<void>;
75
+ complete(status?: boolean): void;
86
76
  /**
87
77
  * Completes the animation and invokes all done callbacks.
78
+ * @param {boolean} status
88
79
  * @private
89
- * @param {boolean} status - True if completed successfully, false if canceled.
90
80
  */
91
81
  private _finish;
82
+ /**
83
+ * Returns an internal promise that resolves on success,
84
+ * and rejects on cancel.
85
+ *
86
+ * @returns {Promise<void>}
87
+ */
88
+ getPromise(): Promise<void>;
89
+ /**
90
+ * Standard "thenable" interface
91
+ * @template T
92
+ * @param {(value: void) => T|Promise<T>} onFulfilled
93
+ * @param {(reason: any) => any} [onRejected]
94
+ * @returns {Promise<T>}
95
+ */
96
+ then<T>(
97
+ onFulfilled: (value: void) => T | Promise<T>,
98
+ onRejected?: (reason: any) => any,
99
+ ): Promise<T>;
100
+ /**
101
+ * Standard promise catcher.
102
+ * @param {(reason: any) => any} onRejected
103
+ * @returns {Promise<void>}
104
+ */
105
+ catch(onRejected: (reason: any) => any): Promise<void>;
106
+ /**
107
+ * Standard promise finally.
108
+ * @param {() => any} onFinally
109
+ * @returns {Promise<void>}
110
+ */
111
+ finally(onFinally: () => any): Promise<void>;
92
112
  }
113
+ export type AnimationHost = import("../interface.ts").AnimationHost;
93
114
  /**
94
115
  * Internal runner states.
95
116
  */
@@ -83,20 +83,4 @@ export const ACTIVE_CLASS_SUFFIX: "-active";
83
83
  export const PREPARE_CLASS_SUFFIX: "-prepare";
84
84
  export const NG_ANIMATE_CLASSNAME: "ng-animate";
85
85
  export const NG_ANIMATE_CHILDREN_DATA: "$$ngAnimateChildren";
86
- export let CSS_PREFIX: string;
87
- export let TRANSITION_PROP: any;
88
- export let TRANSITIONEND_EVENT: any;
89
- export let ANIMATION_PROP: any;
90
- export let ANIMATIONEND_EVENT: any;
91
- export const DURATION_KEY: "Duration";
92
- export const PROPERTY_KEY: number;
93
- export const DELAY_KEY: "Delay";
94
- export const TIMING_KEY: "TimingFunction";
95
- export const ANIMATION_ITERATION_COUNT_KEY: "IterationCount";
96
- export const ANIMATION_PLAYSTATE_KEY: "PlayState";
97
- export const SAFE_FAST_FORWARD_DURATION_VALUE: 9999;
98
- export const ANIMATION_DELAY_PROP: string;
99
- export const ANIMATION_DURATION_PROP: string;
100
- export const TRANSITION_DELAY_PROP: string;
101
- export const TRANSITION_DURATION_PROP: string;
102
86
  export const ngMinErr: (arg0: string, ...arg1: any[]) => Error;
@@ -14,8 +14,8 @@ export class Attributes {
14
14
  nodeRef?: import("../../shared/noderef.js").NodeRef,
15
15
  attributesToCopy?: any,
16
16
  );
17
- _$animate: import("../../interface.ts").AnimateService;
18
- _$exceptionHandler: import("../../interface.ts").ExceptionHandler;
17
+ _$animate: import("../../animations/interface.ts").AnimateService;
18
+ _$exceptionHandler: import("../../services/exception/interface.ts").ExceptionHandler;
19
19
  _$sce: any;
20
20
  $attr: {};
21
21
  /** @type {import("../../shared/noderef.js").NodeRef} */
@@ -59,14 +59,14 @@ export class Attributes {
59
59
  * Set a normalized attribute on the element in a way such that all directives
60
60
  * can share the attribute. This function properly handles boolean attributes.
61
61
  * @param {string} key Normalized key. (ie ngAttribute)
62
- * @param {string|boolean} value The value to set. If `null` attribute will be deleted.
62
+ * @param {string|boolean|null} value The value to set. If `null` attribute will be deleted.
63
63
  * @param {boolean=} writeAttr If false, does not write the value to DOM element attribute.
64
64
  * Defaults to true.
65
65
  * @param {string=} attrName Optional none normalized name. Defaults to key.
66
66
  */
67
67
  $set(
68
68
  key: string,
69
- value: string | boolean,
69
+ value: string | boolean | null,
70
70
  writeAttr?: boolean | undefined,
71
71
  attrName?: string | undefined,
72
72
  ): void;
@@ -87,7 +87,13 @@ export class Attributes {
87
87
  $observe(key: string, fn: any): () => any;
88
88
  $$observers: any;
89
89
  setSpecialAttr(element: any, attrName: any, value: any): void;
90
- sanitizeSrcset(value: any, invokeType: any): any;
91
- srcset: any;
90
+ /**
91
+ *
92
+ * @param {unknown} value
93
+ * @param {string} invokeType
94
+ * @returns {unknown}
95
+ */
96
+ sanitizeSrcset(value: unknown, invokeType: string): unknown;
97
+ srcset: unknown;
92
98
  }
93
99
  import { directiveNormalize } from "../../shared/utils.js";
@@ -125,7 +125,7 @@ export class CompileProvider {
125
125
  | string
126
126
  | ((
127
127
  $injector: ng.InjectorService,
128
- $interpolate: any,
128
+ $interpolate: ng.InterpolateService,
129
129
  $exceptionHandler: ng.ExceptionHandlerService,
130
130
  $templateRequest: ng.TemplateRequestService,
131
131
  $parse: ng.ParseService,
@@ -1,4 +1,4 @@
1
- export function identifierForController(controller: any, ident: any): any;
1
+ export function identifierForController(controller: any, ident: any): string;
2
2
  /**
3
3
  * The {@link ng.$controller $controller service} is used by AngularTS to create new
4
4
  * controllers.
@@ -1,4 +1,5 @@
1
1
  export interface InterpolationFunction {
2
+ expressions: any[];
2
3
  (context: any): string;
3
4
  }
4
5
  export interface InterpolateService {
@@ -41,7 +41,7 @@ export interface CompiledExpressionProps {
41
41
  * Evaluates the compiled expression.
42
42
  */
43
43
  export type CompiledExpressionFunction = (
44
- context?: Scope,
44
+ context?: Scope | typeof Proxy<Scope>,
45
45
  locals?: object,
46
46
  assign?: any,
47
47
  ) => any;
@@ -10,13 +10,15 @@ export class ASTInterpreter {
10
10
  * @param {function(any):any} $filter
11
11
  */
12
12
  constructor($filter: (arg0: any) => any);
13
- $filter: (arg0: any) => any;
13
+ _$filter: (arg0: any) => any;
14
14
  /**
15
15
  * Compiles the AST into a function.
16
- * @param {import("./ast/ast").ASTNode} ast - The AST to compile.
16
+ * @param {import("./ast/ast.js").ASTNode} ast - The AST to compile.
17
17
  * @returns {import("./interface.ts").CompiledExpression}
18
18
  */
19
- compile(ast: any): import("./interface.ts").CompiledExpression;
19
+ compile(
20
+ ast: import("./ast/ast.js").ASTNode,
21
+ ): import("./interface.ts").CompiledExpression;
20
22
  /**
21
23
  * Unary plus operation.
22
24
  * @param {function} argument - The argument function.
@@ -1,5 +1,5 @@
1
- export function nextId(): number;
2
1
  /**
2
+ * @private
3
3
  * Creates a deep proxy for the target object, intercepting property changes
4
4
  * and recursively applying proxies to nested objects.
5
5
  *
@@ -16,12 +16,8 @@ export function createScope(target?: any, context?: Scope): Scope;
16
16
  * @returns {boolean}
17
17
  */
18
18
  export function isNonScope(target: any): boolean;
19
- /**
20
- * Decorator for excluding objects from scope observability
21
- */
22
- export const NONSCOPE: "$nonscope";
23
- export const $postUpdateQueue: any[];
24
- export let rootScope: any;
19
+ /** @ignore @type {Function[]}*/
20
+ export const $postUpdateQueue: Function[];
25
21
  export class RootScopeProvider {
26
22
  rootScope: Scope;
27
23
  $get: (
@@ -53,7 +49,7 @@ export class Scope {
53
49
  $$listeners: Map<string, Function[]>;
54
50
  /** @type {Map<string, Array<import('./interface.ts').Listener>>} Watch listeners from other proxies */
55
51
  foreignListeners: Map<string, Array<import("./interface.ts").Listener>>;
56
- /** @type {Set<ProxyConstructor>} */
52
+ /** @type {Set<Proxy<ng.Scope>>} */
57
53
  foreignProxies: Set<ProxyConstructor>;
58
54
  /** @type {WeakMap<Object, Array<string>>} */
59
55
  objectListeners: WeakMap<any, Array<string>>;
@@ -65,8 +61,8 @@ export class Scope {
65
61
  fn: Function;
66
62
  }
67
63
  >;
68
- /** Current proxy being operated on */
69
- $proxy: any;
64
+ /** @type {Proxy<Scope>} Current proxy being operated on */
65
+ $proxy: ProxyConstructor;
70
66
  /** @type {Scope} The actual proxy */
71
67
  $handler: Scope;
72
68
  /** @type {*} Current target being called on */
@@ -100,7 +96,7 @@ export class Scope {
100
96
  * @param {Object} target - The target object.
101
97
  * @param {string} property - The name of the property being set.
102
98
  * @param {*} value - The new value being assigned to the property.
103
- * @param {Proxy} proxy - The proxy intercepting property access
99
+ * @param {Proxy<Scope>} proxy - The proxy intercepting property access
104
100
  * @returns {boolean} - Returns true to indicate success of the operation.
105
101
  */
106
102
  set(
@@ -116,7 +112,7 @@ export class Scope {
116
112
  *
117
113
  * @param {Object} target - The target object.
118
114
  * @param {string|number|symbol} property - The name of the property being accessed.
119
- * @param {Proxy} proxy - The proxy object being invoked
115
+ * @param {Proxy<Scope>} proxy - The proxy object being invoked
120
116
  * @returns {*} - The value of the property or a method if accessing `watch` or `sync`.
121
117
  */
122
118
  get(
@@ -182,6 +178,10 @@ export class Scope {
182
178
  * @returns {Scope|undefined}
183
179
  */
184
180
  $getById(id: string | number): Scope | undefined;
185
- $searchByName(name: any): any;
181
+ /**
182
+ * @param {string} name
183
+ * @returns {ng.Scope|undefined}
184
+ */
185
+ $searchByName(name: string): ng.Scope | undefined;
186
186
  #private;
187
187
  }
@@ -1,8 +1,5 @@
1
1
  export const REGEX_STRING_REGEXP: RegExp;
2
2
  /**
3
- * @type {Record<string, import("../../interface.ts").DirectiveFactory>}
3
+ * @type {Record<string, ng.DirectiveFactory>}
4
4
  */
5
- export const ngAttributeAliasDirectives: Record<
6
- string,
7
- import("../../interface.ts").DirectiveFactory
8
- >;
5
+ export const ngAttributeAliasDirectives: Record<string, ng.DirectiveFactory>;
@@ -1,3 +1,3 @@
1
- export const ngClassDirective: ng.DirectiveFactory;
2
- export const ngClassOddDirective: ng.DirectiveFactory;
3
- export const ngClassEvenDirective: ng.DirectiveFactory;
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,4 +1,4 @@
1
1
  /**
2
- * @returns {import("../../interface.ts").Directive}
2
+ * @returns {ng.Directive}
3
3
  */
4
- export function ngControllerDirective(): import("../../interface.ts").Directive;
4
+ export function ngControllerDirective(): ng.Directive;
@@ -78,17 +78,17 @@ export class FormController {
78
78
  * @param {ng.Attributes} $attrs
79
79
  * @param {ng.Scope} $scope
80
80
  * @param {ng.AnimateService} $animate
81
- * @param {*} $interpolate
81
+ * @param {ng.InterpolateService} $interpolate
82
82
  */
83
83
  constructor(
84
84
  $element: Element,
85
85
  $attrs: ng.Attributes,
86
86
  $scope: ng.Scope,
87
87
  $animate: ng.AnimateService,
88
- $interpolate: any,
88
+ $interpolate: ng.InterpolateService,
89
89
  );
90
90
  $$controls: any[];
91
- $name: any;
91
+ $name: string;
92
92
  /**
93
93
  * @property {boolean} $dirty True if user has already interacted with the form.
94
94
  */
@@ -103,7 +103,7 @@ export class FormController {
103
103
  /** @type {FormController|Object} */
104
104
  $$parentForm: FormController | any;
105
105
  $$element: Element;
106
- $$animate: import("../../interface.ts").AnimateService;
106
+ $$animate: import("../../animations/interface.ts").AnimateService;
107
107
  $error: {};
108
108
  $$success: {};
109
109
  $pending: any;
@@ -1,14 +1,14 @@
1
1
  /**
2
2
  *
3
3
  * @param {ng.TemplateRequestService} $templateRequest
4
- * @param {import("../../services/anchor-scroll/anchor-scroll.js").AnchorScrollFunction} $anchorScroll
4
+ * @param {ng.AnchorScrollService} $anchorScroll
5
5
  * @param {ng.AnimateService} $animate
6
6
  * @param {ng.ExceptionHandlerService} $exceptionHandler
7
7
  * @returns {ng.Directive}
8
8
  */
9
9
  export function ngIncludeDirective(
10
10
  $templateRequest: ng.TemplateRequestService,
11
- $anchorScroll: import("../../services/anchor-scroll/anchor-scroll.js").AnchorScrollFunction,
11
+ $anchorScroll: ng.AnchorScrollService,
12
12
  $animate: ng.AnimateService,
13
13
  $exceptionHandler: ng.ExceptionHandlerService,
14
14
  ): ng.Directive;
@@ -17,11 +17,11 @@ export namespace ngIncludeDirective {
17
17
  }
18
18
  /**
19
19
  * @param {ng.CompileService} $compile
20
- * @returns {import("../../interface.ts").Directive}
20
+ * @returns {ng.Directive}
21
21
  */
22
22
  export function ngIncludeFillContentDirective(
23
23
  $compile: ng.CompileService,
24
- ): import("../../interface.ts").Directive;
24
+ ): ng.Directive;
25
25
  export namespace ngIncludeFillContentDirective {
26
26
  let $inject_1: string[];
27
27
  export { $inject_1 as $inject };