添加 http(s).Server 和任意 Function 的类型定义
This commit is contained in:
4
src/types/HttpServerLike.ts
Normal file
4
src/types/HttpServerLike.ts
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
import http from 'node:http'
|
||||||
|
import https from 'node:https'
|
||||||
|
|
||||||
|
export type HttpServerLike = http.Server | https.Server
|
||||||
1
src/types/UnknownFunction.ts
Normal file
1
src/types/UnknownFunction.ts
Normal file
@@ -0,0 +1 @@
|
|||||||
|
export type UnknownFunction = (...args: unknown[]) => unknown
|
||||||
Reference in New Issue
Block a user