Skip to content

Commit fab1a9b

Browse files
committed
refactor(@angular/ssr): update type usage to support isolated declarations
This commit addresses various TypeScript compilation errors that arise when the 'isolatedDeclarations' option is enabled.
1 parent 7c7e6a6 commit fab1a9b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

packages/angular/ssr/src/app-engine.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export class AngularAppEngine {
3838
*
3939
* @private
4040
*/
41-
static ɵhooks = /* #__PURE__*/ new Hooks();
41+
static ɵhooks: Hooks = /* #__PURE__*/ new Hooks();
4242

4343
/**
4444
* The manifest for the server application.

packages/angular/ssr/src/routes/route-tree.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,9 @@ export class RouteTree<AdditionalMetadata extends Record<string, unknown> = {}>
188188
*
189189
* @param node - The current node to start the traversal from. Defaults to the root node of the tree.
190190
*/
191-
*traverse(node = this.root): Generator<RouteTreeNodeMetadata & AdditionalMetadata> {
191+
*traverse(
192+
node: RouteTreeNode<AdditionalMetadata> = this.root,
193+
): Generator<RouteTreeNodeMetadata & AdditionalMetadata> {
192194
if (node.metadata) {
193195
yield node.metadata;
194196
}

0 commit comments

Comments
 (0)