Skip to content
tRPC

Function: localLink()

On this page

localLink<TRouter>(opts): TRPCLink<TRouter>

Defined in: packages/client/dist/index.d.mts:234

localLink is a terminating link that allows you to make tRPC procedure calls directly in your application without going through HTTP.

Type Parameters

Type Parameter
TRouter extends AnyRouter

Parameters

ParameterType
optsLocalLinkOptions<TRouter>

Returns

TRPCLink<TRouter>

See

https://trpc.io/docs/client/links/localLink