@angular-wave/angular.ts 0.14.2 → 0.14.3

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 (34) hide show
  1. package/@types/angular.d.ts +4 -3
  2. package/@types/animations/interface.d.ts +2 -2
  3. package/@types/animations/queue/animate-queue.d.ts +0 -1
  4. package/@types/animations/raf-scheduler.d.ts +3 -3
  5. package/@types/animations/runner/animate-runner.d.ts +9 -6
  6. package/@types/core/compile/attributes.d.ts +3 -6
  7. package/@types/core/compile/compile.d.ts +1 -1
  8. package/@types/core/di/ng-module/ng-module.d.ts +8 -7
  9. package/@types/core/filter/filter.d.ts +1 -1
  10. package/@types/core/parse/ast/ast.d.ts +30 -39
  11. package/@types/core/parse/ast-type.d.ts +16 -16
  12. package/@types/core/parse/interpreter.d.ts +1 -26
  13. package/@types/core/parse/lexer/lexer.d.ts +19 -19
  14. package/@types/core/parse/parser/parser.d.ts +4 -9
  15. package/@types/core/scope/interface.d.ts +0 -6
  16. package/@types/router/common/trace.d.ts +5 -5
  17. package/@types/router/params/interface.d.ts +2 -2
  18. package/@types/router/params/param.d.ts +3 -3
  19. package/@types/router/transition/reject-factory.d.ts +5 -5
  20. package/@types/router/transition/transition-hook.d.ts +11 -23
  21. package/@types/services/cookie/cookie.d.ts +2 -2
  22. package/@types/services/http/http.d.ts +8 -7
  23. package/@types/services/pubsub/pubsub.d.ts +1 -2
  24. package/@types/services/rest/rest.d.ts +5 -5
  25. package/@types/services/sse/sse.d.ts +1 -1
  26. package/@types/shared/node.d.ts +8 -0
  27. package/@types/shared/noderef.d.ts +8 -11
  28. package/@types/shared/utils.d.ts +25 -36
  29. package/@types/shared/validate.d.ts +36 -0
  30. package/dist/angular-ts.esm.js +1061 -1094
  31. package/dist/angular-ts.umd.js +1061 -1094
  32. package/dist/angular-ts.umd.min.js +2 -1
  33. package/dist/angular-ts.umd.min.js.map +1 -0
  34. package/package.json +1 -1
@@ -1,7 +1,8 @@
1
1
  export class Angular {
2
- $cache: Map<number, import("./interface.ts").ExpandoStore>;
3
- /** @type {ng.PubSubService} */
4
- $eventBus: ng.PubSubService;
2
+ /** @public */
3
+ public $cache: Map<number, import("./interface.ts").ExpandoStore>;
4
+ /** @public @type {ng.PubSubService} */
5
+ public $eventBus: ng.PubSubService;
5
6
  /**
6
7
  * @type {string} `version` from `package.json`
7
8
  */
@@ -9,13 +9,13 @@ export type RafScheduler = {
9
9
  /**
10
10
  * Internal queue of scheduled task arrays.
11
11
  */
12
- queue: Array<Array<() => void>>;
12
+ _queue: Array<Array<() => void>>;
13
13
  /**
14
14
  * Waits until the animation frame is quiet before running the provided function.
15
15
  * Cancels any previous animation frame requests.
16
16
  * @param fn - The function to run when the frame is quiet.
17
17
  */
18
- waitUntilQuiet(fn: () => void): void;
18
+ _waitUntilQuiet(fn: () => void): void;
19
19
  };
20
20
  export interface AnimationHost {
21
21
  /** Pause animation. */
@@ -12,7 +12,6 @@ export class AnimateQueueProvider {
12
12
  $rootScope: ng.RootScopeService,
13
13
  $injector: ng.InjectorService,
14
14
  $$animation: any,
15
- $templateRequest: ng.TemplateRequestService,
16
15
  ) => import("../queue/interface.ts").AnimateQueueService)
17
16
  )[];
18
17
  }
@@ -10,19 +10,19 @@ export class RafSchedulerProvider {
10
10
  * Internal task queue, where each item is an array of functions to run.
11
11
  * @type {Array<Array<() => void>>}
12
12
  */
13
- queue: Array<Array<() => void>>;
13
+ _queue: Array<Array<() => void>>;
14
14
  /**
15
15
  * ID of the currently scheduled animation frame (if any).
16
16
  * Used for cancellation and tracking.
17
17
  * @type {number|null}
18
18
  */
19
- cancelFn: number | null;
19
+ _cancelFn: number | null;
20
20
  /**
21
21
  * Processes the next batch of tasks in the animation frame.
22
22
  * Executes the first group of functions in the queue, then
23
23
  * schedules the next frame if needed.
24
24
  */
25
- nextTick(): void;
25
+ _nextTick(): void;
26
26
  /**
27
27
  * Returns the scheduler function.
28
28
  * This function allows tasks to be queued for execution on future animation frames.
@@ -17,20 +17,23 @@ export class AnimateRunner {
17
17
  * @param {AnimateRunner[]} runners - Runners to execute in order.
18
18
  * @param {(ok: boolean) => void} callback - Invoked when all complete or one fails.
19
19
  */
20
- static chain(runners: AnimateRunner[], callback: (ok: boolean) => void): void;
20
+ static _chain(
21
+ runners: AnimateRunner[],
22
+ callback: (ok: boolean) => void,
23
+ ): void;
21
24
  /**
22
25
  * Waits for all animation runners to complete before invoking the callback.
23
26
  *
24
27
  * @param {AnimateRunner[]} runners - Active runners to wait for.
25
28
  * @param {(ok: boolean) => void} callback - Called when all runners complete.
26
29
  */
27
- static all(runners: AnimateRunner[], callback: (ok: boolean) => void): void;
30
+ static _all(runners: AnimateRunner[], callback: (ok: boolean) => void): void;
28
31
  /**
29
32
  * @param {import("../interface.ts").AnimationHost} [host] - Optional animation host.
30
33
  */
31
34
  constructor(host?: import("../interface.ts").AnimationHost);
32
35
  /** @type {import("../interface.ts").AnimationHost} */
33
- host: import("../interface.ts").AnimationHost;
36
+ _host: import("../interface.ts").AnimationHost;
34
37
  /** @type {Array<(ok: boolean) => void>} */
35
38
  _doneCallbacks: Array<(ok: boolean) => void>;
36
39
  /** @type {RunnerState} */
@@ -92,8 +95,8 @@ export class AnimateRunner {
92
95
  */
93
96
  type RunnerState = number;
94
97
  declare namespace RunnerState {
95
- let INITIAL: number;
96
- let PENDING: number;
97
- let DONE: number;
98
+ let _INITIAL: number;
99
+ let _PENDING: number;
100
+ let _DONE: number;
98
101
  }
99
102
  export {};
@@ -1,7 +1,6 @@
1
1
  export class Attributes {
2
2
  static $nonscope: boolean;
3
3
  /**
4
- * @param {ng.RootScopeService} $rootScope
5
4
  * @param {ng.AnimateService} $animate
6
5
  * @param {ng.ExceptionHandlerService} $exceptionHandler
7
6
  * @param {*} $sce
@@ -9,17 +8,15 @@ export class Attributes {
9
8
  * @param {Object} [attributesToCopy]
10
9
  */
11
10
  constructor(
12
- $rootScope: ng.RootScopeService,
13
11
  $animate: ng.AnimateService,
14
12
  $exceptionHandler: ng.ExceptionHandlerService,
15
13
  $sce: any,
16
14
  nodeRef?: import("../../shared/noderef.js").NodeRef,
17
15
  attributesToCopy?: any,
18
16
  );
19
- $rootScope: ng.RootScopeService;
20
- $animate: import("../../interface.ts").AnimateService;
21
- $exceptionHandler: import("../../interface.ts").ExceptionHandler;
22
- $sce: any;
17
+ _$animate: import("../../interface.ts").AnimateService;
18
+ _$exceptionHandler: import("../../interface.ts").ExceptionHandler;
19
+ _$sce: any;
23
20
  $attr: {};
24
21
  /** @type {import("../../shared/noderef.js").NodeRef} */
25
22
  $nodeRef: import("../../shared/noderef.js").NodeRef;
@@ -113,7 +113,7 @@ export class CompileProvider {
113
113
  *
114
114
  * @param {string} elementName The element name or '*' to match any element.
115
115
  * @param {string} propertyName The DOM property name.
116
- * @param {string} ctx The {@link $sce} security context in which this value is safe for use, e.g. `$sce.URL`
116
+ * @param {string} ctx The {@link _$sce} security context in which this value is safe for use, e.g. `$sce.URL`
117
117
  * @returns {object} `this` for chaining
118
118
  */
119
119
  addPropertySecurityContext: (
@@ -16,26 +16,27 @@ export class NgModule {
16
16
  configFn?: ng.Injectable<any>,
17
17
  );
18
18
  /**
19
+ * @public
19
20
  * Name of the current module.
20
21
  * @type {string}
21
22
  */
22
- name: string;
23
+ public name: string;
23
24
  /**
24
25
  * Array of module names that this module depends on.
25
26
  * @type {string[]}
26
27
  */
27
- requires: string[];
28
+ _requires: string[];
28
29
  /**
29
30
  * Holds a collection of tasks, required to instantiate an angular component
30
31
  * @type {!Array<Array<*>>}
31
32
  */
32
- invokeQueue: Array<Array<any>>;
33
+ _invokeQueue: Array<Array<any>>;
33
34
  /** @type {!Array<Array<*>>} */
34
- configBlocks: Array<Array<any>>;
35
+ _configBlocks: Array<Array<any>>;
35
36
  /** @type {!Array.<ng.Injectable<any>>} */
36
- runBlocks: Array<ng.Injectable<any>>;
37
- services: any[];
38
- restDefinitions: any[];
37
+ _runBlocks: Array<ng.Injectable<any>>;
38
+ _services: any[];
39
+ _restDefinitions: any[];
39
40
  /**
40
41
  * @param {string} name
41
42
  * @param {any} object - Allows undefined
@@ -10,7 +10,7 @@ export class FilterProvider {
10
10
  * @param {ng.ProvideService} $provide
11
11
  */
12
12
  constructor($provide: ng.ProvideService);
13
- $provide: import("../../interface.ts").Provider;
13
+ _$provide: import("../../interface.ts").Provider;
14
14
  /**
15
15
  * Register a filter a config phase;
16
16
  * @param {string} name
@@ -7,8 +7,8 @@ export class AST {
7
7
  */
8
8
  constructor(lexer: import("../lexer/lexer.js").Lexer);
9
9
  /** @type {import('../lexer/lexer.js').Lexer} */
10
- lexer: import("../lexer/lexer.js").Lexer;
11
- selfReferential: {
10
+ _lexer: import("../lexer/lexer.js").Lexer;
11
+ _selfReferential: {
12
12
  this: {
13
13
  type: number;
14
14
  };
@@ -16,149 +16,140 @@ export class AST {
16
16
  type: number;
17
17
  };
18
18
  };
19
+ _index: number;
19
20
  /**
20
21
  * Parses the input text and generates an AST.
21
22
  * @param {string} text - The input text to parse.
22
23
  * @returns {ASTNode} The root node of the AST.
23
24
  */
24
- ast(text: string): ASTNode;
25
- text: string;
26
- tokens: import("../lexer/token.js").Token[];
25
+ _ast(text: string): ASTNode;
26
+ _text: string;
27
+ _tokens: import("../lexer/token.js").Token[];
27
28
  /**
28
29
  * Parses a program.
29
30
  * @returns {ASTNode} The program node.
30
31
  */
31
- program(): ASTNode;
32
+ _program(): ASTNode;
32
33
  /**
33
34
  * Parses an expression statement.
34
35
  * @returns {ASTNode} The expression statement node.
35
36
  */
36
- expressionStatement(): ASTNode;
37
+ _expressionStatement(): ASTNode;
37
38
  /**
38
39
  * Parses a filter chain.
39
40
  * @returns {ASTNode} The filter chain node.
40
41
  */
41
- filterChain(): ASTNode;
42
+ _filterChain(): ASTNode;
42
43
  /**
43
44
  * Parses an assignment expression.
44
45
  * @returns {ASTNode} The assignment expression node.
45
46
  */
46
- assignment(): ASTNode;
47
+ _assignment(): ASTNode;
47
48
  /**
48
49
  * Parses a ternary expression.
49
50
  * @returns {ASTNode} The ternary expression node.
50
51
  */
51
- ternary(): ASTNode;
52
+ _ternary(): ASTNode;
52
53
  /**
53
54
  * Parses a logical OR expression.
54
55
  * @returns {ASTNode} The logical OR expression node.
55
56
  */
56
- logicalOR(): ASTNode;
57
+ _logicalOR(): ASTNode;
57
58
  /**
58
59
  * Parses a logical AND expression.
59
60
  * @returns {ASTNode} The logical AND expression node.
60
61
  */
61
- logicalAND(): ASTNode;
62
+ _logicalAND(): ASTNode;
62
63
  /**
63
64
  * Parses an equality expression.
64
65
  * @returns {ASTNode} The equality expression node.
65
66
  */
66
- equality(): ASTNode;
67
+ _equality(): ASTNode;
67
68
  /**
68
69
  * Parses a relational expression.
69
70
  * @returns {ASTNode} The relational expression node.
70
71
  */
71
- relational(): ASTNode;
72
+ _relational(): ASTNode;
72
73
  /**
73
74
  * Parses an additive expression.
74
75
  * @returns {ASTNode} The additive expression node.
75
76
  */
76
- additive(): ASTNode;
77
+ _additive(): ASTNode;
77
78
  /**
78
79
  * Parses a multiplicative expression.
79
80
  * @returns {ASTNode} The multiplicative expression node.
80
81
  */
81
- multiplicative(): ASTNode;
82
+ _multiplicative(): ASTNode;
82
83
  /**
83
84
  * Parses a unary expression.
84
85
  * @returns {ASTNode} The unary expression node.
85
86
  */
86
- unary(): ASTNode;
87
+ _unary(): ASTNode;
87
88
  /**
88
89
  * Parses a primary expression.
89
90
  * @returns {ASTNode} The primary expression node.
90
91
  */
91
- primary(): ASTNode;
92
+ _primary(): ASTNode;
92
93
  /**
93
94
  * Parses a filter.
94
95
  * @param {ASTNode} baseExpression - The base expression to apply the filter to.
95
96
  * @returns {ASTNode} The filter node.
96
97
  */
97
- filter(baseExpression: ASTNode): ASTNode;
98
+ _filter(baseExpression: ASTNode): ASTNode;
98
99
  /**
99
100
  * Parses function arguments.
100
101
  * @returns {ASTNode[]} The arguments array.
101
102
  */
102
- parseArguments(): ASTNode[];
103
+ _parseArguments(): ASTNode[];
103
104
  /**
104
105
  * Parses an identifier.
105
106
  * @returns {ASTNode} The identifier node.
106
107
  */
107
- identifier(): ASTNode;
108
+ _identifier(): ASTNode;
108
109
  /**
109
110
  * Parses a constant.
110
111
  * @returns {ASTNode} The constant node.
111
112
  */
112
- constant(): ASTNode;
113
+ _constant(): ASTNode;
113
114
  /**
114
115
  * Parses an array declaration.
115
116
  * @returns {ASTNode} The array declaration node.
116
117
  */
117
- arrayDeclaration(): ASTNode;
118
+ _arrayDeclaration(): ASTNode;
118
119
  /**
119
120
  * Parses an object.
120
121
  * @returns {ASTNode} The object node.
121
122
  */
122
- object(): ASTNode;
123
+ _object(): ASTNode;
123
124
  /**
124
125
  * Throws a syntax error.
125
126
  * @param {string} msg - The error message.
126
127
  * @param {import("../lexer/lexer.js").Token} [token] - The token that caused the error.
127
128
  */
128
- throwError(msg: string, token?: import("../lexer/lexer.js").Token): void;
129
+ _throwError(msg: string, token?: import("../lexer/lexer.js").Token): void;
129
130
  /**
130
131
  * Consumes a token if it matches the expected type.
131
132
  * @param {string} [e1] - The expected token type.
132
133
  * @returns {import("../lexer/lexer.js").Token} The consumed token.
133
134
  */
134
- consume(e1?: string): import("../lexer/lexer.js").Token;
135
+ _consume(e1?: string): import("../lexer/lexer.js").Token;
135
136
  /**
136
137
  * Returns the next token without consuming it.
137
138
  * @returns {import("../lexer/lexer.js").Token} The next token.
138
139
  */
139
- peekToken(): import("../lexer/lexer.js").Token;
140
+ _peekToken(): import("../lexer/lexer.js").Token;
140
141
  /**
141
142
  * Checks if the next token matches any of the expected types.
142
143
  * @param {...string} [expected] - The expected token types.
143
144
  * @returns {import('../lexer/lexer.js').Token|boolean} The next token if it matches, otherwise false.
144
145
  */
145
- peek(...expected: string[]): import("../lexer/lexer.js").Token | boolean;
146
- /**
147
- * Checks if the token at the specified index matches any of the expected types.
148
- * @param {number} i - The index to check.
149
- * @param {...string} [expected] - The expected token types.
150
- * @returns {import("../lexer/lexer.js").Token|boolean} The token at the specified index if it matches, otherwise false.
151
- */
152
- peekAhead(
153
- i: number,
154
- ...expected: string[]
155
- ): import("../lexer/lexer.js").Token | boolean;
146
+ _peek(...expected: string[]): import("../lexer/lexer.js").Token | boolean;
156
147
  /**
157
148
  * Consumes the next token if it matches any of the expected types.
158
149
  * @param {...string} [expected] - The expected token types.
159
150
  * @returns {import("../lexer/lexer.js").Token|boolean} The consumed token if it matches, otherwise false.
160
151
  */
161
- expect(...expected: string[]): import("../lexer/lexer.js").Token | boolean;
152
+ _expect(...expected: string[]): import("../lexer/lexer.js").Token | boolean;
162
153
  }
163
154
  export type ASTNode = import("./ast-node.ts").ASTNode;
164
155
  export type Token = import("../lexer/token.js").Token;
@@ -1,20 +1,20 @@
1
1
  export type ASTType = number;
2
2
  export namespace ASTType {
3
- let Program: number;
4
- let ExpressionStatement: number;
5
- let AssignmentExpression: number;
6
- let ConditionalExpression: number;
7
- let LogicalExpression: number;
8
- let BinaryExpression: number;
9
- let UnaryExpression: number;
10
- let CallExpression: number;
11
- let MemberExpression: number;
12
- let Identifier: number;
13
- let Literal: number;
14
- let ArrayExpression: number;
15
- let Property: number;
16
- let ObjectExpression: number;
17
- let ThisExpression: number;
18
- let LocalsExpression: number;
3
+ let _Program: number;
4
+ let _ExpressionStatement: number;
5
+ let _AssignmentExpression: number;
6
+ let _ConditionalExpression: number;
7
+ let _LogicalExpression: number;
8
+ let _BinaryExpression: number;
9
+ let _UnaryExpression: number;
10
+ let _CallExpression: number;
11
+ let _MemberExpression: number;
12
+ let _Identifier: number;
13
+ let _Literal: number;
14
+ let _ArrayExpression: number;
15
+ let _Property: number;
16
+ let _ObjectExpression: number;
17
+ let _ThisExpression: number;
18
+ let _LocalsExpression: number;
19
19
  let NGValueParameter: number;
20
20
  }
@@ -17,18 +17,6 @@ export class ASTInterpreter {
17
17
  * @returns {import("./interface.ts").CompiledExpression}
18
18
  */
19
19
  compile(ast: any): import("./interface.ts").CompiledExpression;
20
- /**
21
- * Recurses the AST nodes.
22
- * @param {import("./ast/ast").ASTNode} ast - The AST node.
23
- * @param {Object} [context] - The context.
24
- * @param {boolean|1} [create] - The create flag.
25
- * @returns {import("./interface.ts").CompiledExpressionFunction} The recursive function.
26
- */
27
- recurse(
28
- ast: any,
29
- context?: any,
30
- create?: boolean | 1,
31
- ): import("./interface.ts").CompiledExpressionFunction;
32
20
  /**
33
21
  * Unary plus operation.
34
22
  * @param {function} argument - The argument function.
@@ -211,20 +199,6 @@ export class ASTInterpreter {
211
199
  context?: any,
212
200
  create?: boolean | 1,
213
201
  ): import("./interface.ts").CompiledExpressionFunction;
214
- /**
215
- * Returns the value of a computed member expression.
216
- * @param {function} left - The left operand function.
217
- * @param {function} right - The right operand function.
218
- * @param {Object} [context] - The context.
219
- * @param {boolean|1} [create] - Whether to create the member if it does not exist.
220
- * @returns {function} The function returning the computed member value.
221
- */
222
- computedMember(
223
- left: Function,
224
- right: Function,
225
- context?: any,
226
- create?: boolean | 1,
227
- ): Function;
228
202
  /**
229
203
  * Returns the value of a non-computed member expression.
230
204
  * @param {function} left - The left operand function.
@@ -239,6 +213,7 @@ export class ASTInterpreter {
239
213
  context?: any,
240
214
  create?: boolean | 1,
241
215
  ): Function;
216
+ #private;
242
217
  }
243
218
  export type DecoratedASTNode = any & {
244
219
  isPure: boolean | number;
@@ -14,71 +14,71 @@ export class Lexer {
14
14
  */
15
15
  constructor(options: LexerOptions);
16
16
  /** @type {LexerOptions} */
17
- options: LexerOptions;
17
+ _options: LexerOptions;
18
18
  /**
19
19
  * Tokenizes the input text.
20
20
  * @param {string} text Input text to lex.
21
21
  * @returns {Array<Token>} Array of tokens.
22
22
  */
23
- lex(text: string): Array<Token>;
24
- text: string;
25
- index: number;
23
+ _lex(text: string): Array<Token>;
24
+ _text: string;
25
+ _index: number;
26
26
  /** @type {Array<Token>} */
27
- tokens: Array<Token>;
27
+ _tokens: Array<Token>;
28
28
  /**
29
29
  * Checks if a character is contained in a set of characters.
30
30
  * @param {string} ch Character to check.
31
31
  * @param {string} chars Set of characters.
32
32
  * @returns {boolean} True if character is in the set, false otherwise.
33
33
  */
34
- is(ch: string, chars: string): boolean;
34
+ _is(ch: string, chars: string): boolean;
35
35
  /**
36
36
  * Peeks at the next character in the text.
37
37
  * @param {number} [i=1] Number of characters to peek.
38
38
  * @returns {string|false} Next character or false if end of text.
39
39
  */
40
- peek(i?: number): string | false;
40
+ _peek(i?: number): string | false;
41
41
  /**
42
42
  * Checks if a character is a number.
43
43
  * @param {string} ch Character to check.
44
44
  * @returns {boolean} True if character is a number, false otherwise.
45
45
  */
46
- isNumber(ch: string): boolean;
46
+ _isNumber(ch: string): boolean;
47
47
  /**
48
48
  * Checks if a character is whitespace.
49
49
  * @param {string} ch Character to check.
50
50
  * @returns {boolean} True if character is whitespace, false otherwise.
51
51
  */
52
- isWhitespace(ch: string): boolean;
52
+ _isWhitespace(ch: string): boolean;
53
53
  /**
54
54
  * Checks if a character is a valid identifier start.
55
55
  * @param {string} ch Character to check.
56
56
  * @returns {boolean} True if character is a valid identifier start, false otherwise.
57
57
  */
58
- isIdentifierStart(ch: string): boolean;
58
+ _isIdentifierStart(ch: string): boolean;
59
59
  /**
60
60
  * Checks if a character is a valid identifier continuation.
61
61
  * @param {string} ch Character to check.
62
62
  * @returns {boolean} True if character is a valid identifier continuation, false otherwise.
63
63
  */
64
- isIdentifierContinue(ch: string): boolean;
64
+ _isIdentifierContinue(ch: string): boolean;
65
65
  /**
66
66
  * Converts a character to its Unicode code point.
67
67
  * @param {string} ch Character to convert.
68
68
  * @returns {number} Unicode code point.
69
69
  */
70
- codePointAt(ch: string): number;
70
+ _codePointAt(ch: string): number;
71
71
  /**
72
72
  * Peeks at the next multicharacter sequence in the text.
73
73
  * @returns {string} Next multicharacter sequence.
74
74
  */
75
- peekMultichar(): string;
75
+ _peekMultichar(): string;
76
76
  /**
77
77
  * Checks if a character is an exponent operator.
78
78
  * @param {string} ch Character to check.
79
79
  * @returns {boolean} True if character is an exponent operator, false otherwise.
80
80
  */
81
- isExpOperator(ch: string): boolean;
81
+ _isExpOperator(ch: string): boolean;
82
82
  /**
83
83
  * Throws a lexer error.
84
84
  * @param {string} error Error message.
@@ -86,25 +86,25 @@ export class Lexer {
86
86
  * @param {number} [end] End index.
87
87
  * @throws {Error} Lexer error.
88
88
  */
89
- throwError(error: string, start?: number, end?: number): void;
89
+ _throwError(error: string, start?: number, end?: number): void;
90
90
  /**
91
91
  * Reads and tokenizes a number from the text.
92
92
  * @return {void}
93
93
  */
94
- readNumber(): void;
94
+ _readNumber(): void;
95
95
  /**
96
96
  * Reads and tokenizes an identifier from the text.
97
97
  */
98
- readIdent(): void;
98
+ _readIdent(): void;
99
99
  /**
100
100
  * Reads and tokenizes a string from the text.
101
101
  * @param {string} quote Quote character used for the string.
102
102
  */
103
- readString(quote: string): void;
103
+ _readString(quote: string): void;
104
104
  /**
105
105
  * @returns {string}
106
106
  */
107
- handleUnicodeEscape(): string;
107
+ _handleUnicodeEscape(): string;
108
108
  }
109
109
  export type Token = import("./token.ts").Token;
110
110
  export type LexerOptions = {
@@ -16,20 +16,15 @@ export class Parser {
16
16
  $filter: (arg0: any) => any,
17
17
  );
18
18
  /** @type {AST} */
19
- ast: AST;
19
+ _ast: AST;
20
20
  /** @type {ASTInterpreter} */
21
- astCompiler: ASTInterpreter;
21
+ _astCompiler: ASTInterpreter;
22
22
  /**
23
- *
24
23
  * @param {string} exp - Expression to be parsed
25
24
  * @returns {import("../interface.ts").CompiledExpression}
26
25
  */
27
- parse(exp: string): import("../interface.ts").CompiledExpression;
28
- /**
29
- * @param {string} exp - Expression to be parsed
30
- * @returns {ParsedAST}
31
- */
32
- getAst(exp: string): ParsedAST;
26
+ _parse(exp: string): import("../interface.ts").CompiledExpression;
27
+ #private;
33
28
  }
34
29
  export type ParsedAST = {
35
30
  /**
@@ -1,10 +1,4 @@
1
1
  import type { CompiledExpression } from "../parse/interface.ts";
2
- import { Scope } from "./scope.js";
3
- export interface AsyncQueueTask {
4
- handler: Scope;
5
- fn: (...args: any[]) => any;
6
- locals: Record<string, any>;
7
- }
8
2
  export type ListenerFn = (newValue?: any, originalTarget?: object) => void;
9
3
  export interface Listener {
10
4
  originalTarget: any;
@@ -1,10 +1,10 @@
1
1
  export type Category = number;
2
2
  export namespace Category {
3
- let RESOLVE: number;
4
- let TRANSITION: number;
5
- let HOOK: number;
6
- let UIVIEW: number;
7
- let VIEWCONFIG: number;
3
+ let _RESOLVE: number;
4
+ let _TRANSITION: number;
5
+ let _HOOK: number;
6
+ let _UIVIEW: number;
7
+ let _VIEWCONFIG: number;
8
8
  }
9
9
  /**
10
10
  * Prints ng-router Transition trace information to the console.
@@ -381,7 +381,7 @@ export interface Replace {
381
381
  * pattern: new RegExp("[0-9]+(?:-[0-9]+)*")
382
382
  *
383
383
  * // Ensure that the (decoded) object is an array, and that all its elements are numbers
384
- * is: (obj) => Array.isArray(obj) &&
384
+ * is: (obj) => isArray(obj) &&
385
385
  * obj.reduce((acc, item) => acc && typeof item === 'number', true),
386
386
  *
387
387
  * // Compare two arrays of integers
@@ -514,7 +514,7 @@ export interface ParamTypeDefinition {
514
514
  * input is an array of ints:
515
515
  *
516
516
  * ```
517
- * is: (val) => Array.isArray(val) && array.reduce((acc, x) => acc && parseInt(val, 10) === val, true)
517
+ * is: (val) => isArray(val) && array.reduce((acc, x) => acc && parseInt(val, 10) === val, true)
518
518
  * ```
519
519
  *
520
520
  * If your type decodes the URL parameter value to a custom string, check that the string matches
@@ -1,8 +1,8 @@
1
1
  export type DefType = number;
2
2
  export namespace DefType {
3
- let PATH: number;
4
- let SEARCH: number;
5
- let CONFIG: number;
3
+ let _PATH: number;
4
+ let _SEARCH: number;
5
+ let _CONFIG: number;
6
6
  }
7
7
  export class Param {
8
8
  static values(params: any, values?: {}): {};