UNPKG

json-to-ts

Version:

Convert json object to typescript interfaces

6 lines (5 loc) 355 B
import { InterfaceDescription, NameEntry, TypeStructure } from "./model"; export declare function getInterfaceStringFromDescription({ name, typeMap, useTypeAlias, }: InterfaceDescription & { useTypeAlias?: boolean; }): string; export declare function getInterfaceDescriptions(typeStructure: TypeStructure, names: NameEntry[]): InterfaceDescription[];