跳至主要内容
版本: 11.x

函数: withTRPC()

withTRPC<TRouter, TSSRContext>(opts): (AppOrPage) => NextComponentType

类型参数

参数默认值
TRouter extends Router< any, any, TRouter>-
TSSRContext extends NextPageContextNextPageContext

参数

参数类型
optsWithTRPCNoSSROptions< TRouter> | WithTRPCSSROptions< TRouter>

返回值

(AppOrPage): NextComponentType

参数

参数类型
AppOrPageNextComponentType< any, any, any>

返回值

NextComponentType

来源

withTRPC.tsx:96

来源

withTRPC.tsx:86


使用 TypeDoctypedoc-plugin-markdown 生成