Skip to content

lazyRef

@tsed/schema

Usage

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

See /packages/specs/schema/src/types/fn/lazyRef.ts.

Overview

ts
function lazyRef(cb: () => Type<any>): any;

Description

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

Released under the MIT License.