Type Alias: Client<T, TError>
Client<
T,TError> ={ [K in keyof T]: T[K] extends { method: string; path: string } ? ClientEndpoint<T[K], TError> : T[K] extends Record<string, unknown> ? Client<T[K], TError> : never }
Defined in: src/types.ts:4
The typed client matching the contract's endpoint tree.
Type Parameters
| Type Parameter | Default type |
|---|---|
T | - |
TError | unknown |