Class: TRPCUntypedClient<TRouter>
Type parameters
Parameter |
---|
TRouter extends AnyRouter |
Constructors
constructor()
new TRPCUntypedClient<
TRouter
>(opts
):TRPCUntypedClient
<TRouter
>
Type parameters
Parameter |
---|
TRouter extends Router < AnyRouterDef < AnyRootConfig , any >, TRouter > |
Parameters
Parameter | Type |
---|---|
opts | CreateTRPCClientBaseOptions < TRouter > & {links : TRPCLink < TRouter >[];} |
Returns
TRPCUntypedClient
< TRouter
>
Source
packages/client/src/internals/TRPCUntypedClient.ts:97
Properties
runtime
readonly
runtime:TRPCClientRuntime
Source
packages/client/src/internals/TRPCUntypedClient.ts:94
Methods
mutation()
mutation(
path
,input
?,opts
?):Promise
<unknown
>
Parameters
Parameter | Type |
---|---|
path | string |
input ? | unknown |
opts ? | TRPCRequestOptions |
Returns
Promise
< unknown
>
Source
packages/client/src/internals/TRPCUntypedClient.ts:195
query()
query(
path
,input
?,opts
?):Promise
<unknown
>
Parameters
Parameter | Type |
---|---|
path | string |
input ? | unknown |
opts ? | TRPCRequestOptions |
Returns
Promise
< unknown
>
Source
packages/client/src/internals/TRPCUntypedClient.ts:186
subscription()
subscription(
path
,input
,opts
):Unsubscribable
Parameters
Parameter | Type |
---|---|
path | string |
input | unknown |
opts | Partial < TRPCSubscriptionObserver < unknown , TRPCClientError < AnyRouter > > > & TRPCRequestOptions |
Returns
Unsubscribable
Source
packages/client/src/internals/TRPCUntypedClient.ts:204
Generated using TypeDoc and typedoc-plugin-markdown