Skip to content
tRPC

Partners

Interface: LinkDecl

On this page

Defined in: packages/client/src/links/types.ts:141

What a link declares about itself, for clients created with createTRPCClient({ router: routerType<AppRouter>(), links }).

See

https://trpc.io/docs/client/links#typing-call-options

Properties

context?

optional context: object

Defined in: packages/client/src/links/types.ts:146

The fields the link reads from op.context. Calls can pass them, typed, as .query(input, { context }). {} declares that the link reads none.