---
title: "borrow"
description: "Elysia API reference for borrow."
url: "https://next.elysiajs.com/reference/functions/borrow/"
---

# borrow

```ts
function borrow<T>(response): T;
```

Defined in: elysia/dist/adapter/response-ownership.d.ts:2

## Type Parameters

| Type Parameter           |
| ------------------------ |
| `T` *extends* `Response` |

## Parameters

| Parameter  | Type |
| ---------- | ---- |
| `response` | `T`  |

## Returns

`T`
