UNPKG

@jsonjoy.com/json-type

Version:

High-performance JSON Pointer implementation

10 lines (9 loc) 430 B
import type * as ts from './types'; import type * as schema from '../schema'; import type { ObjType } from '../type/classes'; /** * Main router function that converts any Schema to TypeScript AST. * Uses a switch statement to route to the appropriate converter logic. */ export declare function toTypeScriptAst(schema: schema.Schema): ts.TsType; export declare const objToModule: (obj: ObjType<any>) => ts.TsModuleDeclaration;