0.1.1•Updated 7 months ago
interface I_HandshakeRequest {
port: number
}
interface I_ProcessorRequest {
id: string
entity_name: string
method: string
args: any[]
}
interface I_ProcessorSuccessResponse {
id: string
success: true
data?: Record<string, any>
}
interface I_ProcessorFailResponse {
id: string
success: false
message: string
error?: {
name: string
message: string
cause: unknown
}
}
type I_ProcessorResponse = I_ProcessorSuccessResponse | I_ProcessorFailResponse
type VagueFunction = (...args: any[]) => unknown
type VagueAsyncFunction = (...args: any[]) => Promise<unknown>