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

## Usage

```typescript
import { lazyRef } from "@tsed/schema";
```

> See [/packages/specs/schema/src/fn/lazyRef.ts](https://github.com/tsedio/tsed/blob/v8.28.2/packages/specs/schema/src/fn/lazyRef.ts#L0-L0).

## Overview

```ts
function lazyRef<T extends abstract new (...args: any) => any>(cb: () => T): JsonSchema<InstanceType<T>>;
```

<!-- Description -->

## Description

Declare a sub schema which will be resolved later. Use this function when you have a circular reference between two schemes.
