Skip to main content
Version: 10.x

Interface: TRPCClient<TRouter>

Deprecated

Type parameters

Parameter
TRouter extends AnyRouter

Properties

runtime

readonly runtime: TRPCClientRuntime

Source

packages/client/src/createTRPCClient.ts:22

Methods

mutation()

mutation<TMutations, TPath, TInput>( path, input?, opts?): Promise< inferTransformedProcedureOutput< TMutations[TPath] > >

Type parameters

Parameter
TMutations extends any
TPath extends string
TInput extends any

Parameters

ParameterType
pathTPath
input?TInput
opts?TRPCRequestOptions

Returns

Promise< inferTransformedProcedureOutput< TMutations[TPath] > >

Source

packages/client/src/createTRPCClient.ts:33


query()

query<TQueries, TPath, TInput>( path, input?, opts?): Promise< inferProcedureOutput< TQueries[TPath] > >

Type parameters

Parameter
TQueries extends any
TPath extends string
TInput extends any

Parameters

ParameterType
pathTPath
input?TInput
opts?TRPCRequestOptions

Returns

Promise< inferProcedureOutput< TQueries[TPath] > >

Source

packages/client/src/createTRPCClient.ts:23


subscription()

subscription<TSubscriptions, TPath, TOutput, TInput>( path, input, opts): Unsubscribable

Type parameters

Parameter
TSubscriptions extends any
TPath extends string
TOutput extends unknown
TInput extends any

Parameters

ParameterType
pathTPath
inputTInput
optsPartial< TRPCSubscriptionObserver< TOutput, TRPCClientError< TRouter > > > & TRPCRequestOptions

Returns

Unsubscribable

Source

packages/client/src/createTRPCClient.ts:43


Generated using TypeDoc and typedoc-plugin-markdown