nano-service/src/types.ts

7 lines
216 B
TypeScript
Raw Normal View History

2024-01-30 21:50:19 +01:00
import type { Request, Response } from "./messages.ts";
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>>;