2024-01-30 21:50:19 +01:00
|
|
|
import type { Request, Response } from "./messages.ts";
|
2023-10-19 21:48:44 +02:00
|
|
|
|
|
|
|
export type AdaptorSubscribeTypeFn = (msg: string) => Promise<string>;
|
2024-01-04 21:20:47 +01:00
|
|
|
export type RouteSubscribeTypeFn<T, U> = (
|
2024-01-30 21:50:19 +01:00
|
|
|
msg: Request<T>,
|
2024-01-04 21:20:47 +01:00
|
|
|
) => Promise<Response<U>>;
|