Skip to content

Commit e540440

Browse files
committed
Additinal private fields
1 parent 325704e commit e540440

File tree

19 files changed

+94
-91
lines changed

19 files changed

+94
-91
lines changed

@types/animations/interface.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ export type RafScheduler = {
99
/**
1010
* Internal queue of scheduled task arrays.
1111
*/
12-
queue: Array<Array<() => void>>;
12+
_queue: Array<Array<() => void>>;
1313
/**
1414
* Waits until the animation frame is quiet before running the provided function.
1515
* Cancels any previous animation frame requests.
1616
* @param fn - The function to run when the frame is quiet.
1717
*/
18-
waitUntilQuiet(fn: () => void): void;
18+
_waitUntilQuiet(fn: () => void): void;
1919
};
2020
export interface AnimationHost {
2121
/** Pause animation. */

@types/animations/raf-scheduler.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,19 @@ export class RafSchedulerProvider {
1010
* Internal task queue, where each item is an array of functions to run.
1111
* @type {Array<Array<() => void>>}
1212
*/
13-
queue: Array<Array<() => void>>;
13+
_queue: Array<Array<() => void>>;
1414
/**
1515
* ID of the currently scheduled animation frame (if any).
1616
* Used for cancellation and tracking.
1717
* @type {number|null}
1818
*/
19-
cancelFn: number | null;
19+
_cancelFn: number | null;
2020
/**
2121
* Processes the next batch of tasks in the animation frame.
2222
* Executes the first group of functions in the queue, then
2323
* schedules the next frame if needed.
2424
*/
25-
nextTick(): void;
25+
_nextTick(): void;
2626
/**
2727
* Returns the scheduler function.
2828
* This function allows tasks to be queued for execution on future animation frames.

@types/animations/runner/animate-runner.d.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,17 @@ export class AnimateRunner {
1717
* @param {AnimateRunner[]} runners - Runners to execute in order.
1818
* @param {(ok: boolean) => void} callback - Invoked when all complete or one fails.
1919
*/
20-
static chain(runners: AnimateRunner[], callback: (ok: boolean) => void): void;
20+
static _chain(
21+
runners: AnimateRunner[],
22+
callback: (ok: boolean) => void,
23+
): void;
2124
/**
2225
* Waits for all animation runners to complete before invoking the callback.
2326
*
2427
* @param {AnimateRunner[]} runners - Active runners to wait for.
2528
* @param {(ok: boolean) => void} callback - Called when all runners complete.
2629
*/
27-
static all(runners: AnimateRunner[], callback: (ok: boolean) => void): void;
30+
static _all(runners: AnimateRunner[], callback: (ok: boolean) => void): void;
2831
/**
2932
* @param {import("../interface.ts").AnimationHost} [host] - Optional animation host.
3033
*/

@types/core/di/ng-module/ng-module.d.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,23 @@ export class NgModule {
1919
* Name of the current module.
2020
* @type {string}
2121
*/
22-
name: string;
22+
_name: string;
2323
/**
2424
* Array of module names that this module depends on.
2525
* @type {string[]}
2626
*/
27-
requires: string[];
27+
_requires: string[];
2828
/**
2929
* Holds a collection of tasks, required to instantiate an angular component
3030
* @type {!Array<Array<*>>}
3131
*/
32-
invokeQueue: Array<Array<any>>;
32+
_invokeQueue: Array<Array<any>>;
3333
/** @type {!Array<Array<*>>} */
34-
configBlocks: Array<Array<any>>;
34+
_configBlocks: Array<Array<any>>;
3535
/** @type {!Array.<ng.Injectable<any>>} */
36-
runBlocks: Array<ng.Injectable<any>>;
37-
services: any[];
38-
restDefinitions: any[];
36+
_runBlocks: Array<ng.Injectable<any>>;
37+
_services: any[];
38+
_restDefinitions: any[];
3939
/**
4040
* @param {string} name
4141
* @param {any} object - Allows undefined

@types/core/parse/ast/ast.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ export class AST {
77
*/
88
constructor(lexer: import("../lexer/lexer.js").Lexer);
99
/** @type {import('../lexer/lexer.js').Lexer} */
10-
lexer: import("../lexer/lexer.js").Lexer;
11-
selfReferential: {
10+
_lexer: import("../lexer/lexer.js").Lexer;
11+
_selfReferential: {
1212
this: {
1313
type: number;
1414
};

@types/core/parse/lexer/lexer.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export class Lexer {
1414
*/
1515
constructor(options: LexerOptions);
1616
/** @type {LexerOptions} */
17-
options: LexerOptions;
17+
_options: LexerOptions;
1818
/**
1919
* Tokenizes the input text.
2020
* @param {string} text Input text to lex.

@types/core/parse/parser/parser.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ export class Parser {
1616
$filter: (arg0: any) => any,
1717
);
1818
/** @type {AST} */
19-
ast: AST;
19+
_ast: AST;
2020
/** @type {ASTInterpreter} */
21-
astCompiler: ASTInterpreter;
21+
_astCompiler: ASTInterpreter;
2222
/**
2323
* @param {string} exp - Expression to be parsed
2424
* @returns {import("../interface.ts").CompiledExpression}

src/animations/animate-css-driver.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ export function AnimateCssDriverProvider($$animationProvider) {
237237
cancel: endFn, // CSS-driven animations cannot be cancelled, only ended
238238
});
239239

240-
AnimateRunner.all(animationRunners, (status) => {
240+
AnimateRunner._all(animationRunners, (status) => {
241241
runner.complete(status);
242242
});
243243

src/animations/animate-css.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ export function AnimateCssProvider() {
246246

247247
function waitUntilQuiet(callback) {
248248
rafWaitQueue.push(callback);
249-
$$rAFScheduler.waitUntilQuiet(() => {
249+
$$rAFScheduler._waitUntilQuiet(() => {
250250
$$animateCache.flush();
251251

252252
// DO NOT REMOVE THIS LINE OR REFACTOR OUT THE `pageWidth` variable.

src/animations/animate-js-driver.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export function AnimateJsDriverProvider($$animationProvider) {
3030
animationRunners.push(toAnimation.start());
3131
}
3232

33-
AnimateRunner.all(animationRunners, done);
33+
AnimateRunner._all(animationRunners, done);
3434

3535
const runner = new AnimateRunner({
3636
end: endFnFactory(),

0 commit comments

Comments
 (0)