@tsed/schema
Version:
JsonSchema module for Ts.ED Framework
8 lines (7 loc) • 340 B
TypeScript
import type { JsonSchema } from "../domain/JsonSchema.js";
/**
* Declare a sub schema which will be resolved later. Use this function when you have a circular reference between two schemes.
*
* @schemaFunctional
*/
export declare function lazyRef<T extends abstract new (...args: any) => any>(cb: () => T): JsonSchema<InstanceType<T>>;