Class: TRPCUntypedClient<TRouter>
Type Parameters
Type Parameter |
---|
TRouter extends AnyRouter |
Constructors
new TRPCUntypedClient()
new TRPCUntypedClient<
TRouter
>(opts
):TRPCUntypedClient
<TRouter
>
Parameters
Parameter | Type |
---|---|
opts | CreateTRPCClientOptions <TRouter > |
Returns
TRPCUntypedClient
<TRouter
>
Defined in
packages/client/src/internals/TRPCUntypedClient.ts:63
Properties
runtime
readonly
runtime:TRPCClientRuntime
Defined in
packages/client/src/internals/TRPCUntypedClient.ts:60
Methods
mutation()
mutation(
path
,input
?,opts
?):Promise
<unknown
>
Parameters
Parameter | Type |
---|---|
path | string |
input ? | unknown |
opts ? | TRPCRequestOptions |
Returns
Promise
<unknown
>
Defined in
packages/client/src/internals/TRPCUntypedClient.ts:117
query()
query(
path
,input
?,opts
?):Promise
<unknown
>
Parameters
Parameter | Type |
---|---|
path | string |
input ? | unknown |
opts ? | TRPCRequestOptions |
Returns
Promise
<unknown
>
Defined in
packages/client/src/internals/TRPCUntypedClient.ts:108
subscription()
subscription(
path
,input
,opts
):Unsubscribable
Parameters
Parameter | Type |
---|---|
path | string |
input | unknown |
opts | Partial <TRPCSubscriptionObserver <unknown , TRPCClientError <AnyRouter >>> & TRPCRequestOptions |
Returns
Unsubscribable