From 581a6acc529366fecb325bb8b51ba9425ffe6e78 Mon Sep 17 00:00:00 2001 From: CrescentLeaf Date: Thu, 14 Aug 2025 12:06:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20http(s).Server=20=E5=92=8C?= =?UTF-8?q?=E4=BB=BB=E6=84=8F=20Function=20=E7=9A=84=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/types/HttpServerLike.ts | 4 ++++ src/types/UnknownFunction.ts | 1 + 2 files changed, 5 insertions(+) create mode 100644 src/types/HttpServerLike.ts create mode 100644 src/types/UnknownFunction.ts diff --git a/src/types/HttpServerLike.ts b/src/types/HttpServerLike.ts new file mode 100644 index 0000000..779bcbc --- /dev/null +++ b/src/types/HttpServerLike.ts @@ -0,0 +1,4 @@ +import http from 'node:http' +import https from 'node:https' + +export type HttpServerLike = http.Server | https.Server diff --git a/src/types/UnknownFunction.ts b/src/types/UnknownFunction.ts new file mode 100644 index 0000000..6425f4b --- /dev/null +++ b/src/types/UnknownFunction.ts @@ -0,0 +1 @@ +export type UnknownFunction = (...args: unknown[]) => unknown