@jsonjoy.com/json-type
Version:
High-performance JSON Pointer implementation
9 lines (8 loc) • 445 B
TypeScript
import type { AbsType } from '../type/classes/AbsType';
import type { TypeExportContext } from '../system/TypeExportContext';
import type { JsonSchemaNode } from './types';
/**
* Main router function that converts a type to JSON Schema using a switch statement.
* This replaces the individual toJsonSchema() methods on each type class.
*/
export declare function typeToJsonSchema(type: AbsType<any>, ctx?: TypeExportContext): JsonSchemaNode;