Skip to content

Commit

Permalink
Merge pull request #5242 from Connormiha/add-missing-types
Browse files Browse the repository at this point in the history
Add missing start options types
  • Loading branch information
Unitech authored Jan 20, 2022
2 parents f17cd4c + d77ea05 commit 0dccb41
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,10 @@ interface Pm2Env {
}

export interface StartOptions {
/**
* Enable or disable auto restart after process failure (default: true).
*/
autorestart?: boolean;
/**
* An arbitrary name that can be used to interact with (e.g. restart) the process
* later in other commands. Defaults to the script name without its extension
Expand Down Expand Up @@ -362,6 +366,14 @@ export interface StartOptions {
* Uses human-friendly suffixes: ‘K’ for kilobytes, ‘M’ for megabytes, ‘G’ for gigabytes’, etc. Eg “150M”.
*/
max_memory_restart?: number | string;
/**
* Arguments to pass to the interpreter
*/
node_args?: string | string[];
/**
* Prefix logs with time
*/
time?: boolean;
/**
* This will make PM2 listen for that event. In your application you will need to add process.send('ready');
* when you want your application to be considered as ready.
Expand Down

0 comments on commit 0dccb41

Please sign in to comment.