# Type Alias: TRPCLink()<TInferrable>

> 

> **TRPCLink**\<`TInferrable`\>: (`opts`) => `OperationLink`\<`TInferrable`\>

Defined in: [packages/client/src/links/types.ts:124](https://github.com/trpc/trpc/blob/7c907acfd8b31929214792e3b8c2ad7a8ac72563/packages/client/src/links/types.ts#L124)

A link: a step every call goes through, such as logging or sending it
over HTTP. It's called once when the client is created.

## Type Parameters

| Type Parameter |
| ------ |
| `TInferrable` *extends* `InferrableClientTypes` |

## Parameters

| Parameter | Type |
| ------ | ------ |
| `opts` | [`TRPCClientRuntime`](https://trpc.io/docs/typedoc/client/index/interfaces/TRPCClientRuntime.md) |

## Returns

`OperationLink`\<`TInferrable`\>

## See

https://trpc.io/docs/client/links#creating-a-custom-link
