diff --git a/src/completion-listener.ts b/src/completion-listener.ts index 27cb4460..03794ffa 100644 --- a/src/completion-listener.ts +++ b/src/completion-listener.ts @@ -1,6 +1,6 @@ import * as Rx from 'rxjs'; import { bufferCount, switchMap, take } from 'rxjs/operators'; -import { Command } from './command'; +import { CloseEvent, Command } from './command'; /** * Defines which command(s) in a list must exit successfully (with an exit code of `0`): @@ -56,7 +56,7 @@ export class CompletionListener { * * @returns A Promise that resolves if the success condition is met, or rejects otherwise. */ - listen(commands: Command[]): Promise { + listen(commands: Command[]): Promise { const closeStreams = commands.map(command => command.close); return Rx.merge(...closeStreams) .pipe(