From 448d3c94bc2c93fb4b1b7c3c723b1f7ebcda58e4 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Mon, 17 Jul 2023 17:30:46 +0200 Subject: [PATCH] chore: add missing type import --- src/listen.ts | 6 ++---- src/types.ts | 2 ++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/listen.ts b/src/listen.ts index 41a55bb..ca1167f 100644 --- a/src/listen.ts +++ b/src/listen.ts @@ -1,8 +1,6 @@ import { createServer } from "node:http"; -import { - Server as HTTPServer, - createServer as createHTTPSServer, -} from "node:https"; +import type { Server as HTTPServer } from "node:https"; +import { createServer as createHTTPSServer } from "node:https"; import { promisify } from "node:util"; import type { RequestListener, Server } from "node:http"; import type { AddressInfo } from "node:net"; diff --git a/src/types.ts b/src/types.ts index 42337e8..ed01652 100644 --- a/src/types.ts +++ b/src/types.ts @@ -1,3 +1,5 @@ +import type { Server } from "node:http"; +import type { Server as HTTPServer } from "node:https"; import type { GetPortInput } from "get-port-please"; export interface Certificate {