From d77ea0537fd5e503a399f5b459fa959f9ec48402 Mon Sep 17 00:00:00 2001 From: Mikhail Bodrov Date: Tue, 7 Dec 2021 23:23:40 +0200 Subject: [PATCH] Add missing start options types --- types/index.d.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/types/index.d.ts b/types/index.d.ts index b2e8a6d42..96c82dffe 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -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 @@ -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.