TRPCUntypedClient<TRouter>
Type parameters
TRouter
extendsAnyRouter
Constructors
constructor()
Signature
ts
new TRPCUntypedClient<TRouter>(opts: CreateTRPCClientOptions<TRouter>): TRPCUntypedClient<TRouter>;
ts
new TRPCUntypedClient<TRouter>(opts: CreateTRPCClientOptions<TRouter>): TRPCUntypedClient<TRouter>;
Type parameters
TRouter
extendsRouter
<AnyRouterDef
<AnyRootConfig
,any
>,TRouter
>
Parameters
Name | Type |
---|---|
opts | CreateTRPCClientOptions <TRouter > |
Returns
TRPCUntypedClient
<TRouter
>
Defined in: packages/client/dist/internals/TRPCUntypedClient.d.ts:54
Properties
runtime
Readonly
TRPCClientRuntime
Defined in: packages/client/dist/internals/TRPCUntypedClient.d.ts:52
Methods
mutation()
Signature
ts
mutation(path: string, input?: unknown, opts?: TRPCRequestOptions): Promise<unknown>;
ts
mutation(path: string, input?: unknown, opts?: TRPCRequestOptions): Promise<unknown>;
Parameters
Name | Type |
---|---|
path | string |
input? | unknown |
opts? | TRPCRequestOptions |
Returns
Promise
<unknown
>
Defined in: packages/client/dist/internals/TRPCUntypedClient.d.ts:58
query()
Signature
ts
query(path: string, input?: unknown, opts?: TRPCRequestOptions): Promise<unknown>;
ts
query(path: string, input?: unknown, opts?: TRPCRequestOptions): Promise<unknown>;
Parameters
Name | Type |
---|---|
path | string |
input? | unknown |
opts? | TRPCRequestOptions |
Returns
Promise
<unknown
>
Defined in: packages/client/dist/internals/TRPCUntypedClient.d.ts:57
subscription()
Signature
ts
subscription(path: string, input: unknown, opts: TRPCRequestOptions & Partial<TRPCSubscriptionObserver<unknown, TRPCClientError<AnyRouter>>>): Unsubscribable;
ts
subscription(path: string, input: unknown, opts: TRPCRequestOptions & Partial<TRPCSubscriptionObserver<unknown, TRPCClientError<AnyRouter>>>): Unsubscribable;
Parameters
Name | Type |
---|---|
path | string |
input | unknown |
opts | TRPCRequestOptions & Partial <TRPCSubscriptionObserver <unknown , TRPCClientError <AnyRouter >>> |
Returns
Unsubscribable
Defined in: packages/client/dist/internals/TRPCUntypedClient.d.ts:59