Skip to main content
Version: 10.x

TRPCUntypedClient<TRouter>

Type parameters

  • TRouter extends AnyRouter

Constructors

constructor()

Signature

ts
new TRPCUntypedClient<TRouter>(opts: CreateTRPCClientBaseOptions<TRouter> & {
links: TRPCLink<TRouter>[];
}): TRPCUntypedClient<TRouter>;
ts
new TRPCUntypedClient<TRouter>(opts: CreateTRPCClientBaseOptions<TRouter> & {
links: TRPCLink<TRouter>[];
}): TRPCUntypedClient<TRouter>;

Type parameters

  • TRouter extends Router<AnyRouterDef<AnyRootConfig, any>, TRouter>

Parameters

NameType
optsCreateTRPCClientBaseOptions<TRouter> & { links: TRPCLink<TRouter>[]; }

Returns

TRPCUntypedClient<TRouter>

Defined in: packages/client/src/internals/TRPCUntypedClient.ts:96

Properties

runtime

Readonly TRPCClientRuntime

Defined in: packages/client/src/internals/TRPCUntypedClient.ts:93

Methods

mutation()

Signature

ts
mutation(path: string, input?: unknown, opts?: TRPCRequestOptions): Promise<unknown>;
ts
mutation(path: string, input?: unknown, opts?: TRPCRequestOptions): Promise<unknown>;

Parameters

NameType
pathstring
input?unknown
opts?TRPCRequestOptions

Returns

Promise<unknown>

Defined in: packages/client/src/internals/TRPCUntypedClient.ts:181

query()

Signature

ts
query(path: string, input?: unknown, opts?: TRPCRequestOptions): Promise<unknown>;
ts
query(path: string, input?: unknown, opts?: TRPCRequestOptions): Promise<unknown>;

Parameters

NameType
pathstring
input?unknown
opts?TRPCRequestOptions

Returns

Promise<unknown>

Defined in: packages/client/src/internals/TRPCUntypedClient.ts:172

subscription()

Signature

ts
subscription(path: string, input: unknown, opts: TRPCRequestOptions & Partial<TRPCSubscriptionObserver<unknown, TRPCClientError<AnyRouter>>>): Unsubscribable;
ts
subscription(path: string, input: unknown, opts: TRPCRequestOptions & Partial<TRPCSubscriptionObserver<unknown, TRPCClientError<AnyRouter>>>): Unsubscribable;

Parameters

NameType
pathstring
inputunknown
optsTRPCRequestOptions & Partial<TRPCSubscriptionObserver<unknown, TRPCClientError<AnyRouter>>>

Returns

Unsubscribable

Defined in: packages/client/src/internals/TRPCUntypedClient.ts:190