利用JSON2TypeScript进行类型安全的JSON到TypeScript转换

JSON2TypeScript工具包提供了一个便捷的解决方案,将外部JSON API响应安全地映射到TypeScript类实例。此方法可确保在TypeScript编译期间进行类型检查,提高数据可靠性并减少后期错误的可能性。通过简单的函数调用,JSON2TypeScript可将JSON对象转换为您定义的类实例,并保留类方法的访问。

zip
json2typescript-master.zip 预估大小:33个文件
folder
json2typescript-master 文件夹
file
.gitignore 69B
file
karma.conf.js 1009B
file
tsconfig.json 738B
file
README.md 24KB
file
CHANGELOG.md 7KB
folder
test 文件夹
folder
model 文件夹
folder
typescript 文件夹
file
duplicate-cat.ts 872B
file
date-converter.ts 762B
file
human.ts 505B
file
dog.ts 391B
file
animal.ts 580B
file
optional-cat.ts 349B
file
cat.ts 408B
folder
json 文件夹
file
i-dog.ts 178B
file
i-optional-cat.ts 165B
file
i-human.ts 92B
file
i-cat.ts 194B
file
i-animal.ts 111B
file
i-duplicate-cat.ts 107B
file
json2typescript.unit.ts 27KB
file
json2typescript.integration.ts 14KB
file
package.json 1KB
file
tslint.json 2KB
folder
src 文件夹
folder
json2typescript 文件夹
file
json-custom-convert.ts 927B
file
json-convert-decorators.ts 8KB
file
json-convert-enums.ts 1KB
file
json-convert.ts 40KB
file
json-convert-options.ts 531B
file
any.ts 75B
file
LICENSE.md 1KB
file
index.ts 392B
file
.travis.yml 62B
file
tsconfig-cjs.json 129B
file
package-lock.json 129KB
zip 文件大小:71.98KB