Interface: TRPCClient<TRouter>
Deprecated
Type parameters
Parameter |
---|
TRouter extends AnyRouter |
Properties
runtime
readonly
runtime: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 |
---|
TMutations extends any |
TPath extends string |
TInput extends any |
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 |
---|
TQueries extends any |
TPath extends string |
TInput extends any |
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 |
---|
TSubscriptions extends any |
TPath extends string |
TOutput extends unknown |
TInput extends any |
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