![Heading image](https://img-blog.csdnimg.cn/img_convert/cb622e85f434c86ee64a56715173a31a.png)
Building on from previous posts on a spike on JSON Schema, we will continue in this one by looking at an alternative library to the json-schema-to-typescript
the library previously explored.
在以前的JSON Schema上的文章的基础上,我们将继续研究以前探索过的json-schema-to-typescript
库的替代库。
配置 (Setting Up)
# From a yarn initialised project
yarn add quicktype-core
# setting up the files
touch index.js book.json
For book.json
, add the following. It will follow a similar JSON schema we've used previously with the Book but a few changes, so are sure to copy-pa