From 2a95204da1b2dc111e293f4055807b95efa1b790 Mon Sep 17 00:00:00 2001 From: Andrew Chou Date: Wed, 31 Jul 2024 18:00:14 -0400 Subject: [PATCH 1/2] fix: fix compatibility with verbatimModuleSyntax TS config option --- lib/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/types.ts b/lib/types.ts index d334b37..a941b67 100644 --- a/lib/types.ts +++ b/lib/types.ts @@ -1,4 +1,4 @@ -import { ErrorObject } from 'serialize-error' +import type { ErrorObject } from 'serialize-error' import { EventEmitter } from 'events' import { Readable } from 'stream' From 74d369fc625b2668f84b94a9b8e8a77c6f021506 Mon Sep 17 00:00:00 2001 From: Andrew Chou Date: Fri, 2 Aug 2024 15:01:08 -0400 Subject: [PATCH 2/2] only import types for other imports --- lib/types.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/types.ts b/lib/types.ts index a941b67..8c6790d 100644 --- a/lib/types.ts +++ b/lib/types.ts @@ -1,6 +1,6 @@ import type { ErrorObject } from 'serialize-error' -import { EventEmitter } from 'events' -import { Readable } from 'stream' +import type { EventEmitter } from 'events' +import type { Readable } from 'stream' export enum msgType { REQUEST = 0,