mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-05 20:02:05 +08:00
Added possibility to inject array into constructor and start function
This commit is contained in:
4
types/forever-monitor/index.d.ts
vendored
4
types/forever-monitor/index.d.ts
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user