6 lines
212 B
TypeScript
6 lines
212 B
TypeScript
import { Message, Response } from "./messages.ts";
|
|
|
|
export type AdaptorSubscribeTypeFn = (msg: string) => Promise<string>;
|
|
export type RouteSubscribeTypeFn<T, U> = (
|
|
msg: Message<T>,
|
|
) => Promise<Response<U>>;
|