Added possibility to inject array into constructor and start function

This commit is contained in:
Jan Wolf
2017-05-06 11:20:49 +02:00
parent 3195c79d9e
commit fb55166133

View File

@@ -35,7 +35,7 @@ export interface Options {
parser?(command: string, args: string[]): { command: string, args: string[] };
}
export function start(script: string, options?: Options): Monitor;
export function start(script: string | string[], options?: Options): Monitor;
export function kill(pid: number, killTree?: boolean, signal?: string, callback?: () => any): void;
export function checkProcess(pid: number): boolean;
export const version: string;
@@ -45,7 +45,7 @@ export class Monitor extends NodeJS.EventEmitter {
* @param script - Location of the target script to run.
* @param [options] - Configuration for this instance.
*/
constructor(script: string, options?: Options);
constructor(script: string | string[], options?: Options);
/**
* @description Start the process that this instance is configured for