UNPKG

@tsed/schema

Version:
17 lines (16 loc) 687 B
import type { JSONSchema7 } from "json-schema"; import type { JsonSchema } from "../domain/JsonSchema.js"; import { JsonSchemaOptions } from "../interfaces/JsonSchemaOptions.js"; export declare function getSchemaFromRef($ref: string | undefined, options: JsonSchemaOptions): JSONSchema7 | undefined; /** * @ignore */ export declare function createRefName(name: string, options: JsonSchemaOptions): string; /** * @ignore */ export declare function createRef(name: string, schema: JsonSchema, options: JsonSchemaOptions): JSONSchema7; /** * @ignore */ export declare function toRef(value: JsonSchema, schema: JSONSchema7 | undefined | null, options: JsonSchemaOptions): JSONSchema7;