nano-service/src/types.ts

7 lines
212 B
TypeScript
Raw Normal View History

import { 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> = (
msg: Request<T>,
2024-01-04 21:20:47 +01:00
) => Promise<Response<U>>;