Skip to content

Commit f9507ff

Browse files
committed
refactor(@angular/ssr): support building with isolatedDeclarations
This commit adds explicit return types and parameter types to the `@angular/ssr` package to satisfy the `isolatedDeclarations` compiler option.
1 parent 7bbcb7f commit f9507ff

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/angular/ssr/node/src/common-engine/common-engine.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export class CommonEngine {
6565
private readonly inlineCriticalCssProcessor = new CommonEngineInlineCriticalCssProcessor();
6666
private readonly pageIsSSG = new Map<string, boolean>();
6767

68-
constructor(private options?: CommonEngineOptions) {
68+
constructor(private options?: CommonEngineOptions | undefined) {
6969
attachNodeGlobalErrorHandlers();
7070
}
7171

packages/angular/ssr/src/utils/redirect.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
/**
1010
* An set of HTTP status codes that are considered valid for redirect responses.
1111
*/
12-
export const VALID_REDIRECT_RESPONSE_CODES = new Set([301, 302, 303, 307, 308]);
12+
export const VALID_REDIRECT_RESPONSE_CODES: Set<number> = new Set([301, 302, 303, 307, 308]);
1313

1414
/**
1515
* Checks if the given HTTP status code is a valid redirect response code.

0 commit comments

Comments
 (0)