diff --git a/aedes.d.ts b/aedes.d.ts index 1574faf1..3735efdf 100644 --- a/aedes.d.ts +++ b/aedes.d.ts @@ -6,3 +6,7 @@ export * from './types/instance' export * from './types/packet' export * from './types/client' export default Aedes + +declare module 'aedes' { + export = Aedes +} diff --git a/test/types/aedes.test-d.ts b/test/types/aedes.test-d.ts index abac7cae..30e34168 100644 --- a/test/types/aedes.test-d.ts +++ b/test/types/aedes.test-d.ts @@ -1,4 +1,3 @@ - import { IncomingMessage } from 'node:http' import { Socket } from 'node:net' import type {