tsx-ray:从Typescript文件中将接口提取为Javascript对象。 JSON兼容

时间:2021-05-16 23:51:37
【文件属性】:
文件名称:tsx-ray:从Typescript文件中将接口提取为Javascript对象。 JSON兼容
文件大小:97KB
文件格式:ZIP
更新时间:2021-05-16 23:51:37
TypeScript 介绍 该库从TypeScript源文件中提取接口定义,并将其解析为JSON兼容JavaScript对象。 用它来转这个 interface Attendee { id : ID ; person : Person ; accompaniedBy ?: Person ; status : 'beginner' | 'experienced' | 'pro' ; accessLv : 1 | 2 | 3 ; } interface Person { name : string ; isUnderage : boolean ; address : Address ; phoneNumbers : PhoneNumbers ; } interface Address { city : City | CityCode ; country : Count
【文件预览】:
tsx-ray-master
----.gitignore(51B)
----tsconfig.json(769B)
----README.md(2KB)
----.github()
--------workflows()
----test()
--------extract.test.ts(1KB)
----.prettierrc(113B)
----.vscode()
--------settings.json(56B)
----LICENSE(1KB)
----package.json(789B)
----src()
--------types.ts(1KB)
--------utils.ts(1KB)
--------index.ts(4KB)
----testfiles()
--------interfaces.ts(363B)
--------address.ts(142B)
----.eslintrc.js(148B)
----package-lock.json(421KB)

网友评论