chore: rename types -> typedef
This commit is contained in:
5
server/typedef/EventCallbackFunction.ts
Normal file
5
server/typedef/EventCallbackFunction.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import ApiCallbackMessage from "../api/ApiCallbackMessage.ts"
|
||||
|
||||
type EventCallbackFunction = (args: { [key: string]: unknown }) => ApiCallbackMessage
|
||||
|
||||
export default EventCallbackFunction
|
||||
6
server/typedef/HttpServerLike.ts
Normal file
6
server/typedef/HttpServerLike.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import http from 'node:http'
|
||||
import https from 'node:https'
|
||||
|
||||
type HttpServerLike = http.Server | https.Server
|
||||
|
||||
export default HttpServerLike
|
||||
3
server/typedef/UnknownFunction.ts
Normal file
3
server/typedef/UnknownFunction.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
type UnknownFunction = (...args: unknown[]) => unknown
|
||||
|
||||
export default UnknownFunction
|
||||
Reference in New Issue
Block a user