Skip to main content
Version: 11.x

Class: TRPCUntypedClient<TRouter>

Type Parameters

Type Parameter
TRouter extends AnyRouter

Constructors

new TRPCUntypedClient()

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

Parameters

ParameterType
optsCreateTRPCClientOptions<TRouter>

Returns

TRPCUntypedClient<TRouter>

Defined in

packages/client/dist/internals/TRPCUntypedClient.d.ts:34

Properties

runtime

readonly runtime: TRPCClientRuntime

Defined in

packages/client/dist/internals/TRPCUntypedClient.d.ts:32

Methods

mutation()

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

Parameters

ParameterType
pathstring
input?unknown
opts?TRPCRequestOptions

Returns

Promise<unknown>

Defined in

packages/client/dist/internals/TRPCUntypedClient.d.ts:38


query()

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

Parameters

ParameterType
pathstring
input?unknown
opts?TRPCRequestOptions

Returns

Promise<unknown>

Defined in

packages/client/dist/internals/TRPCUntypedClient.d.ts:37


subscription()

subscription(path, input, opts): Unsubscribable

Parameters

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

Returns

Unsubscribable

Defined in

packages/client/dist/internals/TRPCUntypedClient.d.ts:39