UNPKG

@hacxy/json2ts

Version:

Json to typescript types generator

10 lines (9 loc) 377 B
/** * 分析 TypeScript 代码字符串中的类型依赖关系,返回排序后的代码和类型顺序 * @param codeString TypeScript 代码字符串 * @returns { sortedCode: string; sortedTypes: string[] } 排序后的代码和类型顺序 */ export declare function analyzeAndSortTypeScript(codeString: string): { sortedCode: string; sortedTypes: string[]; };