Skip to main content
Version: 11.x

Type Alias: CreateTRPCProxyClient<TRouter>

CreateTRPCProxyClient<TRouter>: inferRouterProxyClient<TRouter> extends infer $Value ? UntypedClientProperties & keyof $Value extends never ? inferRouterProxyClient<TRouter> : IntersectionError<UntypedClientProperties & keyof $Value> : never

Creates a proxy client and shows type errors if you have query names that collide with built-in properties

Type Parameters

Type Parameter
TRouter extends AnyRouter

Defined in

packages/client/dist/createTRPCClient.d.ts:44