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/src/internals/TRPCUntypedClient.ts:63

Properties

runtime

readonly runtime: TRPCClientRuntime

Defined in

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

Methods

mutation()

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

Parameters

ParameterType
pathstring
input?unknown
opts?TRPCRequestOptions

Returns

Promise<unknown>

Defined in

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


query()

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

Parameters

ParameterType
pathstring
input?unknown
opts?TRPCRequestOptions

Returns

Promise<unknown>

Defined in

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


subscription()

subscription(path, input, opts): Unsubscribable

Parameters

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

Returns

Unsubscribable

Defined in

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