refactor(@ngtools/webpack): adjust types to support strict mode

This commit is contained in:
Charles Lyding 2020-07-31 16:20:59 -04:00 committed by Charles
parent e852b62fce
commit 823a8beaa3
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ export function workaroundResolve(path: Path | string): string {
}
export function flattenArray<T>(value: Array<T | T[]>): T[] {
return [].concat.apply([], value);
return ([] as T[]).concat.apply([], value);
}
// TS represents paths internally with '/' and expects paths to be in this format.

View File

@ -60,7 +60,7 @@ export class VirtualFileSystemDecorator implements InputFileSystem {
(this._inputFileSystem as any).readJson(path, callback);
}
readlink(path: string, callback: (err: Error, linkString: string) => void): void {
readlink(path: string, callback: (err: Error | null | undefined, linkString: string) => void): void {
this._inputFileSystem.readlink(path, callback);
}