类: TRPCUntypedClient<TRouter>
类型参数
参数 |
---|
TRouter 扩展 AnyRouter |
构造函数
constructor()
new TRPCUntypedClient<
TRouter
>(opts
):TRPCUntypedClient
<TRouter
>
类型参数
参数 |
---|
TRouter 扩展 Router < any , any , TRouter > |
参数
参数 | 类型 |
---|---|
opts | CreateTRPCClientOptions < TRouter > |
返回值
TRPCUntypedClient
< TRouter
>
来源
packages/client/dist/internals/TRPCUntypedClient.d.ts:30
属性
runtime
readonly
runtime:TRPCClientRuntime
来源
packages/client/dist/internals/TRPCUntypedClient.d.ts:28
方法
mutation()
mutation(
path
,input
?,opts
?):Promise
<unknown
>
参数
参数 | 类型 |
---|---|
path | string |
input ? | unknown |
opts ? | TRPCRequestOptions |
返回值
Promise
< unknown
>
来源
packages/client/dist/internals/TRPCUntypedClient.d.ts:34
query()
query(
path
,input
?,opts
?):Promise
<unknown
>
参数
参数 | 类型 |
---|---|
path | string |
input ? | unknown |
opts ? | TRPCRequestOptions |
返回值
Promise
< unknown
>
来源
packages/client/dist/internals/TRPCUntypedClient.d.ts:33
subscription()
subscription(
path
,input
,opts
):Unsubscribable
参数
参数 | 类型 |
---|---|
path | string |
input | unknown |
opts | Partial < TRPCSubscriptionObserver < unknown , TRPCClientError < AnyRouter > > >& TRPCRequestOptions |
返回值
Unsubscribable
来源
packages/client/dist/internals/TRPCUntypedClient.d.ts:35
使用 TypeDoc 和 typedoc-plugin-markdown 生成