Skip to content
tRPC

Partners

Type Alias: TRPCClient<TRouter>

On this page

TRPCClient<TRouter>: DecoratedProcedureRecord<{ errorShape: TRouter["_def"]["_config"]["$types"]["errorShape"]; transformer: TRouter["_def"]["_config"]["$types"]["transformer"]; }, TRouter["_def"]["record"]> & object

Defined in: packages/client/src/createTRPCClient.ts:52

A typed client for a router, as createTRPCClient returns it. Each procedure has .query(), .mutate() or .subscribe().

Type declaration

[untypedClientSymbol]

[untypedClientSymbol]: TRPCUntypedClient<TRouter>

Type Parameters

Type Parameter
TRouter extends AnyRouter

See

https://trpc.io/docs/client/vanilla/infer-types