12 lines
254 B
TypeScript
12 lines
254 B
TypeScript
import { Result } from "@shared/utils/result.ts";
|
|
|
|
class ClientApi<Req, Res> {
|
|
constructor(path: string, method: string) {}
|
|
validate(res: Response): ResultAsync<Res> {
|
|
const body = await res.json();
|
|
}
|
|
}
|
|
|
|
class ServerApi<Req, Res> {
|
|
}
|