Skip to main content
Module

x/cav/dom.ts>RouterClient

A server framework for Deno
Go to Latest
type alias RouterClient
import { type RouterClient } from "https://deno.land/x/cav@0.2.3/dom.ts";

Type of a Client when the handler is a Router.

Type Parameters

Shape extends RouterShape
optional
_Shape = Omit<Shape, "*">
definition: (UnionToIntersection<[K in keyof _Shape]: (_Shape[K] extends infer S ? (S extends Handler ? ExpandPath<K, Client<S>> : S extends string ? ExpandPath<K, Client> : S extends Handler[] ? ExpandPath<K, UnionToIntersection<Client<S[number]>>> : S) : never)[keyof _Shape]> extends infer U ? [K in keyof Uin keyof U[K] extends null | undefined ? never : K]: U[K] : never)