TRPCUntypedClient<TRouter>
Type parameters
TRouter
extendsAnyRouter
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
extendsRouter
<AnyRouterDef
<AnyRootConfig
,any
>,TRouter
>
Parameters
Name | Type |
---|---|
opts | CreateTRPCClientBaseOptions <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
Name | Type |
---|---|
path | string |
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
Name | Type |
---|---|
path | string |
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
Name | Type |
---|---|
path | string |
input | unknown |
opts | TRPCRequestOptions & Partial <TRPCSubscriptionObserver <unknown , TRPCClientError <AnyRouter >>> |
Returns
Unsubscribable
Defined in: packages/client/src/internals/TRPCUntypedClient.ts:190