Skip to content

Commit

Permalink
refactor: Make Logger.forEach compatible with both rxjs 6 and 7.
Browse files Browse the repository at this point in the history
Some build environments build angular with rxjs 7, and see build
failures due to this file.

(cherry picked from commit c3a3871)
  • Loading branch information
gunan authored and dgp1130 committed Oct 25, 2022
1 parent 83524f6 commit 3ad1422
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/angular_devkit/core/src/logger/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export class Logger extends Observable<LogEntry> implements LoggerApi {

override forEach(
next: (value: LogEntry) => void,
promiseCtor?: PromiseConstructorLike,
promiseCtor: PromiseConstructorLike = Promise,
): Promise<void> {
return this._observable.forEach(next, promiseCtor);
}
Expand Down

0 comments on commit 3ad1422

Please sign in to comment.