Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/hono/client/index.ts>ClientRequest

Web Framework built on Web Standards
Extremely Popular
Go to Latest
type alias ClientRequest
import { type ClientRequest } from "https://deno.land/x/hono@v4.2.8/client/index.ts";

Type Parameters

S extends Schema
definition: [M in keyof S]: S[M] extends { input: infer R; output: infer O; } ? R extends object ? HasRequiredKeys<R> extends true ? (args: R, options?: ClientRequestOptions) => Promise<ClientResponse<O>> : (args?: R, options?: ClientRequestOptions) => Promise<ClientResponse<O>> : never : never & { $url: (arg?: S[keyof S] extends { input: infer R; } ? R extends { param: infer P; } ? { param: P; } : { } : { }) => URL; } & (S["$get"] extends { input: { json: UpgradedWebSocketResponseInputJSONType; }; } ? S["$get"] extends { input: infer I; } ? { $ws: (args?: Omit<I, "json">) => WebSocket; } : { } : { })