From cac7eb4d2ee2d12cf8664743bf4d6b611ad4a955 Mon Sep 17 00:00:00 2001 From: Daniele Draganti Date: Wed, 28 Dec 2022 13:12:00 +0100 Subject: [PATCH] Improves StartedStoppedHandler definition to return Promise with void[] type --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index 9a470a664..41f0e0a25 100644 --- a/index.d.ts +++ b/index.d.ts @@ -721,7 +721,7 @@ declare namespace Moleculer { version?: string | number; } - type StartedStoppedHandler = () => Promise | void; + type StartedStoppedHandler = () => Promise | Promise | void; interface ServiceSchema { name: string; version?: string | number;