Skip to main content
Version: 11.x

Class: TRPCUntypedClient<TRouter>

Type parameters

Parameter
TRouter extends AnyRouter

Constructors

constructor()

new TRPCUntypedClient<TRouter>(opts): TRPCUntypedClient< TRouter >

Type parameters

Parameter
TRouter extends Router< any, any, TRouter >

Parameters

ParameterType
optsCreateTRPCClientOptions< TRouter >

Returns

TRPCUntypedClient< TRouter >

Source

packages/client/src/internals/TRPCUntypedClient.ts:59

Properties

runtime

readonly runtime: TRPCClientRuntime

Source

packages/client/src/internals/TRPCUntypedClient.ts:56

Methods

mutation()

mutation( path, input?, opts?): Promise< unknown >

Parameters

ParameterType
pathstring
input?unknown
opts?TRPCRequestOptions

Returns

Promise< unknown >

Source

packages/client/src/internals/TRPCUntypedClient.ts:125


query()

query( path, input?, opts?): Promise< unknown >

Parameters

ParameterType
pathstring
input?unknown
opts?TRPCRequestOptions

Returns

Promise< unknown >

Source

packages/client/src/internals/TRPCUntypedClient.ts:116


subscription()

subscription( path, input, opts): Unsubscribable

Parameters

ParameterType
pathstring
inputunknown
optsPartial< TRPCSubscriptionObserver< unknown, TRPCClientError< AnyRouter > > > & TRPCRequestOptions

Returns

Unsubscribable

Source

packages/client/src/internals/TRPCUntypedClient.ts:134


Generated using TypeDoc and typedoc-plugin-markdown