From 75d6a5dc577eac70150ef3e57db3250d2c0f38d4 Mon Sep 17 00:00:00 2001 From: Gustavo Henke Date: Sun, 2 Jan 2022 19:46:07 +1100 Subject: [PATCH] Make CompletionListener compliant with docs --- src/completion-listener.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(