@jsonjoy.com/json-type
Version:
High-performance JSON Pointer implementation
11 lines (10 loc) • 625 B
TypeScript
import type { AliasType } from '../type';
import type { AbsType } from '../type/classes/AbsType';
import { TypeExportContext } from '../type/classes/ModuleType/TypeExportContext';
import type { JsonSchemaGenericKeywords, JsonSchemaNode } from './types';
export declare const aliasToJsonSchema: (alias: AliasType<any, any>) => JsonSchemaGenericKeywords;
/**
* 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;