Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export class CommonEngine {
private readonly inlineCriticalCssProcessor = new CommonEngineInlineCriticalCssProcessor();
private readonly pageIsSSG = new Map<string, boolean>();

constructor(private options?: CommonEngineOptions) {
constructor(private options?: CommonEngineOptions | undefined) {
attachNodeGlobalErrorHandlers();
}

Expand Down
2 changes: 1 addition & 1 deletion packages/angular/ssr/src/utils/redirect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* An set of HTTP status codes that are considered valid for redirect responses.
*/
export const VALID_REDIRECT_RESPONSE_CODES = new Set([301, 302, 303, 307, 308]);
export const VALID_REDIRECT_RESPONSE_CODES: Set<number> = new Set([301, 302, 303, 307, 308]);

/**
* Checks if the given HTTP status code is a valid redirect response code.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import { SchematicContext, Tree } from '@angular-devkit/schematics';

export default function (options: {}) {
return (tree: Tree, context: SchematicContext) => {
return (tree: Tree, context: SchematicContext): void => {
// We pass information back to the test.
tree.create(
(context.schematic.description as any).extra, // tslint:disable-line:no-any
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import { SchematicContext, Tree } from '@angular-devkit/schematics';

export default function () {
return (_: Tree, context: SchematicContext) => {
return (_: Tree, context: SchematicContext): void => {
context.addTask({
toConfiguration() {
return { name: 'file-tasks/file-task.js' };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
* found in the LICENSE file at https://angular.dev/license
*/
export default function () {
return () => {};
return (): void => {};
}