Skip to content

Commit 823a8be

Browse files
committed
refactor(@ngtools/webpack): adjust types to support strict mode
1 parent e852b62 commit 823a8be

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/ngtools/webpack/src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export function workaroundResolve(path: Path | string): string {
1818
}
1919

2020
export function flattenArray<T>(value: Array<T | T[]>): T[] {
21-
return [].concat.apply([], value);
21+
return ([] as T[]).concat.apply([], value);
2222
}
2323

2424
// TS represents paths internally with '/' and expects paths to be in this format.

packages/ngtools/webpack/src/virtual_file_system_decorator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export class VirtualFileSystemDecorator implements InputFileSystem {
6060
(this._inputFileSystem as any).readJson(path, callback);
6161
}
6262

63-
readlink(path: string, callback: (err: Error, linkString: string) => void): void {
63+
readlink(path: string, callback: (err: Error | null | undefined, linkString: string) => void): void {
6464
this._inputFileSystem.readlink(path, callback);
6565
}
6666

0 commit comments

Comments
 (0)