Skip to main content
Module

x/hono/client/types.ts>ClientRequest

Web Framework built on Web Standards
Extremely Popular
Latest
type alias ClientRequest
import { type ClientRequest } from "https://deno.land/x/hono@v4.3.11/client/types.ts";
definition: [M in keyof S]: S[M] extends Endpoint & { input: infer R; } ? R extends object ? HasRequiredKeys<R> extends true ? (args: R, options?: ClientRequestOptions) => Promise<ClientResponseOfEndpoint<S[M]>> : (args?: R, options?: ClientRequestOptions) => Promise<ClientResponseOfEndpoint<S[M]>> : never : never & { $url: (arg?: S[keyof S] extends { input: infer R; } ? R extends { param: infer P; } ? { param: P; } : { } : { }) => URL; } & (S["$get"] extends { outputFormat: "ws"; } ? S["$get"] extends { input: infer I; } ? { $ws: (args?: I) => WebSocket; } : { } : { })