---
meta:
 - name: keywords
   description: api typescript node.js documentation useContextRef function
---
# useContextRef - @tsed/di

## Usage

```typescript
import { useContextRef } from "@tsed/di";
```

> See [/packages/di/src/node/utils/asyncHookContext.ts](https://github.com/tsedio/tsed/blob/v8.28.4/packages/di/src/node/utils/asyncHookContext.ts#L0-L0).

## Overview

```ts
function useContextRef(): {
    current: DIContext | undefined;
} | undefined;
```

<!-- Members -->

## current

```ts
current: DIContext | undefined;
```
