feat: split client to separate class
This commit is contained in:
12
libraries/adapter.ts
Normal file
12
libraries/adapter.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
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;
|
||||
};
|
||||
Reference in New Issue
Block a user