@jsonjoy.com/json-type
Version:
High-performance JSON Pointer implementation
12 lines (11 loc) • 594 B
TypeScript
import { ObjType } from '../type/classes';
import type { AliasType } from '../type/classes/AliasType';
import type { Type } from '../type/types';
import type * as ts from './types';
/**
* 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(type: Type): ts.TsType;
export declare const aliasToTs: (alias: AliasType<any, any>) => ts.TsInterfaceDeclaration | ts.TsTypeAliasDeclaration;
export declare const objToModule: (obj: ObjType<any>) => ts.TsModuleDeclaration;