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/dist/internals/TRPCUntypedClient.d.ts:34
Properties
runtime
readonly
runtime:TRPCClientRuntime
Defined in
packages/client/dist/internals/TRPCUntypedClient.d.ts:32
Methods
mutation()
mutation(
path
,input
?,opts
?):Promise
<unknown
>
Parameters
Parameter | Type |
---|---|
path | string |
input ? | unknown |
opts ? | TRPCRequestOptions |
Returns
Promise
<unknown
>
Defined in
packages/client/dist/internals/TRPCUntypedClient.d.ts:38
query()
query(
path
,input
?,opts
?):Promise
<unknown
>
Parameters
Parameter | Type |
---|---|
path | string |
input ? | unknown |
opts ? | TRPCRequestOptions |
Returns
Promise
<unknown
>
Defined in
packages/client/dist/internals/TRPCUntypedClient.d.ts:37
subscription()
subscription(
path
,input
,opts
):Unsubscribable
Parameters
Parameter | Type |
---|---|
path | string |
input | unknown |
opts | Partial <TRPCSubscriptionObserver <unknown , TRPCClientError <AnyRouter >>> & TRPCRequestOptions |
Returns
Unsubscribable
Defined in
packages/client/dist/internals/TRPCUntypedClient.d.ts:39