Interface: TRPCClient<TRouter>
Deprecated
Type parameters
| Parameter | 
|---|
| TRouterextendsAnyRouter | 
Properties
runtime
readonlyruntime:TRPCClientRuntime
Source
packages/client/dist/createTRPCClient.d.ts:11
Methods
mutation()
mutation<
TMutations,TPath,TInput>(path,input?,opts?):Promise<inferTransformedProcedureOutput<TMutations[TPath] > >
Type parameters
| Parameter | 
|---|
| TMutationsextendsany | 
| TPathextendsstring | 
| TInputextendsany | 
Parameters
| Parameter | Type | 
|---|---|
| path | TPath | 
| input? | TInput | 
| opts? | TRPCRequestOptions | 
Returns
Promise< inferTransformedProcedureOutput< TMutations[TPath] > >
Source
packages/client/dist/createTRPCClient.d.ts:13
query()
query<
TQueries,TPath,TInput>(path,input?,opts?):Promise<inferProcedureOutput<TQueries[TPath] > >
Type parameters
| Parameter | 
|---|
| TQueriesextendsany | 
| TPathextendsstring | 
| TInputextendsany | 
Parameters
| Parameter | Type | 
|---|---|
| path | TPath | 
| input? | TInput | 
| opts? | TRPCRequestOptions | 
Returns
Promise< inferProcedureOutput< TQueries[TPath] > >
Source
packages/client/dist/createTRPCClient.d.ts:12
subscription()
subscription<
TSubscriptions,TPath,TOutput,TInput>(path,input,opts):Unsubscribable
Type parameters
| Parameter | 
|---|
| TSubscriptionsextendsany | 
| TPathextendsstring | 
| TOutputextendsunknown | 
| TInputextendsany | 
Parameters
| Parameter | Type | 
|---|---|
| path | TPath | 
| input | TInput | 
| opts | Partial<TRPCSubscriptionObserver<TOutput,TRPCClientError<TRouter> > > &TRPCRequestOptions | 
Returns
Unsubscribable
Source
packages/client/dist/createTRPCClient.d.ts:14
Generated using TypeDoc and typedoc-plugin-markdown