UNPKG
@hacxy/json2ts
Version:
latest (0.3.0)
0.3.0
0.2.0
0.1.0
0.0.1
Json to typescript types generator
github.com/hacxy/json2ts
hacxy/json2ts
@hacxy/json2ts
/
dist
/
utils.d.ts
10 lines
(9 loc)
•
377 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
/** * 分析 TypeScript 代码字符串中的类型依赖关系,返回排序后的代码和类型顺序 *
@param
codeString TypeScript 代码字符串 *
@returns
{ sortedCode: string; sortedTypes: string[] } 排序后的代码和类型顺序 */
export
declare
function
analyzeAndSortTypeScript
(
codeString:
string
):
{ sortedCode:
string
; sortedTypes:
string
[]; };