UNPKG

@tsed/schema

Version:
8 lines (7 loc) 340 B
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>>;