13 lines
234 B
TypeScript
13 lines
234 B
TypeScript
import type { RouteMethod } from "./route.ts";
|
|
|
|
export type RelayAdapter = {
|
|
fetch(input: RequestInput): Promise<unknown>;
|
|
};
|
|
|
|
export type RequestInput = {
|
|
method: RouteMethod;
|
|
url: string;
|
|
search: string;
|
|
body?: string;
|
|
};
|