TRPCClient<TRouter>
Deprecated
Type parameters
TRouterextendsAnyRouter
Properties
runtime
ReadonlyTRPCClientRuntime
Defined in: packages/client/dist/createTRPCClient.d.ts:11
Methods
mutation()
Signature
tsmutation<TMutations, TPath, TInput>(path: TPath, input?: TInput, opts?: TRPCRequestOptions): Promise<inferTransformedProcedureOutput<TMutations[TPath]>>;
tsmutation<TMutations, TPath, TInput>(path: TPath, input?: TInput, opts?: TRPCRequestOptions): Promise<inferTransformedProcedureOutput<TMutations[TPath]>>;
Type parameters
TMutationsextendsanyTPathextendsstringTInputextendsany
Parameters
| Name | Type |
|---|---|
path | TPath |
input? | TInput |
opts? | TRPCRequestOptions |
Returns
Promise<inferTransformedProcedureOutput<TMutations[TPath]>>
Defined in: packages/client/dist/createTRPCClient.d.ts:13
query()
Signature
tsquery<TQueries, TPath, TInput>(path: TPath, input?: TInput, opts?: TRPCRequestOptions): Promise<inferProcedureOutput<TQueries[TPath]>>;
tsquery<TQueries, TPath, TInput>(path: TPath, input?: TInput, opts?: TRPCRequestOptions): Promise<inferProcedureOutput<TQueries[TPath]>>;
Type parameters
TQueriesextendsanyTPathextendsstringTInputextendsany
Parameters
| Name | Type |
|---|---|
path | TPath |
input? | TInput |
opts? | TRPCRequestOptions |
Returns
Promise<inferProcedureOutput<TQueries[TPath]>>
Defined in: packages/client/dist/createTRPCClient.d.ts:12
subscription()
Signature
tssubscription<TSubscriptions, TPath, TOutput, TInput>(path: TPath, input: TInput, opts: TRPCRequestOptions & Partial<TRPCSubscriptionObserver<TOutput, TRPCClientError<TRouter>>>): Unsubscribable;
tssubscription<TSubscriptions, TPath, TOutput, TInput>(path: TPath, input: TInput, opts: TRPCRequestOptions & Partial<TRPCSubscriptionObserver<TOutput, TRPCClientError<TRouter>>>): Unsubscribable;
Type parameters
TSubscriptionsextendsanyTPathextendsstringTOutputextendsunknownTInputextendsany
Parameters
| Name | Type |
|---|---|
path | TPath |
input | TInput |
opts | TRPCRequestOptions & Partial<TRPCSubscriptionObserver<TOutput, TRPCClientError<TRouter>>> |
Returns
Unsubscribable
Defined in: packages/client/dist/createTRPCClient.d.ts:14