Skip to content

Commit

Permalink
Fix onFinish signature when using exactOptionalPropertyTypes (#372)
Browse files Browse the repository at this point in the history
  • Loading branch information
Baune8D authored Oct 15, 2022
1 parent 54b56c6 commit 7c8e644
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/flow-control/input-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ export class InputHandler implements FlowController {
this.pauseInputStreamOnFinish = pauseInputStreamOnFinish !== false;
}

handle(commands: Command[]) {
handle(commands: Command[]): {
commands: Command[];
onFinish?: () => void | undefined;
} {
if (!this.inputStream) {
return { commands };
}
Expand Down

0 comments on commit 7c8e644

Please sign in to comment.