UNPKG

642 BTypeScriptView Raw
1/// <reference types="node" />
2/// <reference types="node" />
3import EventEmitter from 'events';
4import { Command } from '../command';
5import { FlowController } from './flow-controller';
6/**
7 * Watches the main concurrently process for signals and sends the same signal down to each spawned
8 * command.
9 */
10export declare class KillOnSignal implements FlowController {
11 private readonly process;
12 private readonly abortController?;
13 constructor({ process, abortController, }: {
14 process: EventEmitter;
15 abortController?: AbortController;
16 });
17 handle(commands: Command[]): {
18 commands: Command[];
19 };
20}