添加 http(s).Server 和任意 Function 的类型定义

This commit is contained in:
CrescentLeaf
2025-08-14 12:06:15 +08:00
parent c23ce07c85
commit 581a6acc52
2 changed files with 5 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
import http from 'node:http'
import https from 'node:https'
export type HttpServerLike = http.Server | https.Server

View File

@@ -0,0 +1 @@
export type UnknownFunction = (...args: unknown[]) => unknown