From bcc5497b1610c498d24ea04656cc7dc033002d06 Mon Sep 17 00:00:00 2001 From: hjdhjd Date: Sun, 26 Nov 2023 17:31:51 -0600 Subject: [PATCH] Fix module exports for TypeScript for ES6 compliance --- aedes.d.ts | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/aedes.d.ts b/aedes.d.ts index 3735efdf..f528be18 100644 --- a/aedes.d.ts +++ b/aedes.d.ts @@ -1,12 +1,5 @@ -import Aedes, { AedesOptions } from './types/instance' +export * from './types/instance'; +export * from './types/packet'; +export * from './types/client'; -export declare function createBroker (options?: AedesOptions): Aedes - -export * from './types/instance' -export * from './types/packet' -export * from './types/client' -export default Aedes - -declare module 'aedes' { - export = Aedes -} +export { default } from './types/instance';