From cf122a05bcf76fd28352aeaa0646f04a301580db Mon Sep 17 00:00:00 2001 From: Pablo Maribondo Date: Thu, 9 Dec 2021 19:53:04 -0300 Subject: [PATCH] chore: add handler types to aedes object --- types/instance.d.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/types/instance.d.ts b/types/instance.d.ts index ca18155a..729ec174 100644 --- a/types/instance.d.ts +++ b/types/instance.d.ts @@ -90,4 +90,11 @@ export interface Aedes extends EventEmitter { callback: () => void ): void close (callback?: () => void): void + + preConnect: PreConnectHandler + authenticate: AuthenticateHandler + authorizePublish: AuthorizePublishHandler + authorizeSubscribe: AuthorizeSubscribeHandler + authorizeForward: AuthorizeForwardHandler + published: PublishedHandler }