import { Result } from "@shared/utils/result.ts"; class ValidationError extends BaseError { code = "ValidationError"; constructor(msg: string) { super(msg); } } class ClientApi { constructor(path: string, method: string) {} validate(res: Response): ResultAsync { const body = await res.json(); } } class ServerApi { }