1 | /// <reference types="node" />
|
2 | /// <reference types="node" />
|
3 | import EventEmitter from 'events';
|
4 | import { Command } from '../command';
|
5 | import { 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 | */
|
10 | export 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 | onFinish: () => void;
|
20 | };
|
21 | }
|