From c0771aaa86fce50fb71ed571425fe99eba1ec72b Mon Sep 17 00:00:00 2001 From: fabrykowski Date: Tue, 29 Mar 2022 19:39:39 +0200 Subject: [PATCH 1/2] feat: add named export --- lib/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/index.ts b/lib/index.ts index 233232b6..ce4c71c6 100644 --- a/lib/index.ts +++ b/lib/index.ts @@ -1,6 +1,6 @@ exports = module.exports = require("./Redis").default; -export { default } from "./Redis"; +export { default, default as Redis } from "./Redis"; export { default as Cluster } from "./cluster"; /** From f89b098939203407818da92e63c9cb377db1dd32 Mon Sep 17 00:00:00 2001 From: fabrykowski Date: Wed, 30 Mar 2022 10:44:19 +0200 Subject: [PATCH 2/2] fix: export only type as named export --- lib/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/index.ts b/lib/index.ts index ce4c71c6..766c9b1f 100644 --- a/lib/index.ts +++ b/lib/index.ts @@ -1,6 +1,7 @@ exports = module.exports = require("./Redis").default; -export { default, default as Redis } from "./Redis"; +export { default } from "./Redis"; +export type { default as Redis } from "./Redis"; export { default as Cluster } from "./cluster"; /**