nano-service/src/types.ts
qpismont 8283e05c02
All checks were successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/lint Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
bun bun bun
2024-01-30 21:50:19 +01:00

6 lines
216 B
TypeScript

import type { Request, Response } from "./messages.ts";
export type AdaptorSubscribeTypeFn = (msg: string) => Promise<string>;
export type RouteSubscribeTypeFn<T, U> = (
msg: Request<T>,
) => Promise<Response<U>>;