# Function: ~~experimental_localLink()~~

> 

> **experimental\_localLink**\<`TRouter`\>(`opts`): [`TRPCLink`](https://trpc.io/docs/typedoc/client/index/type-aliases/TRPCLink.md)\<`TRouter`\>

Defined in: [packages/client/src/links/localLink.ts:318](https://github.com/trpc/trpc/blob/7c907acfd8b31929214792e3b8c2ad7a8ac72563/packages/client/src/links/localLink.ts#L318)

## Type Parameters

| Type Parameter |
| ------ |
| `TRouter` *extends* `AnyRouter` |

## Parameters

| Parameter | Type |
| ------ | ------ |
| `opts` | [`LocalLinkOptions`](https://trpc.io/docs/typedoc/client/index/type-aliases/LocalLinkOptions.md)\<`TRouter`\> |

## Returns

[`TRPCLink`](https://trpc.io/docs/typedoc/client/index/type-aliases/TRPCLink.md)\<`TRouter`\>

## Deprecated

Use [localLink](https://trpc.io/docs/typedoc/client/index/functions/localLink.md) instead. This alias will be removed in a
future major release.

## See

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