From b35ea237e3b448088112b2f3a771a9c5286417a7 Mon Sep 17 00:00:00 2001 From: vince Date: Wed, 29 Aug 2018 17:58:49 +0200 Subject: [PATCH] fix: #3883 fix typings for max_memory_restart and add wait_ready --- types/index.d.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/types/index.d.ts b/types/index.d.ts index 49c058d2f..4a46fecf7 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -348,7 +348,12 @@ export interface StartOptions { * If sets and script’s memory usage goes about the configured number, pm2 restarts the script. * Uses human-friendly suffixes: ‘K’ for kilobytes, ‘M’ for megabytes, ‘G’ for gigabytes’, etc. Eg “150M”. */ - max_memory_restart?: number; + max_memory_restart?: number | string; + /** + * 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. + */ + wait_ready?: boolean; /** * (Default: 1600) * The number of milliseconds to wait after a stop or restart command issues a SIGINT signal to kill the