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