说明
通过 swagger.json
文件生成一个 typescript
的声明文件
通过以下脚本运行
# 将结果输出到终端
swagger2ts https://api.example.com/swagger.json
# 将结果写入文件
swagger2ts https://api.example.com/swagger.json > swagger.ts
通过 swagger.json
文件生成一个 typescript
的声明文件
通过以下脚本运行
# 将结果输出到终端
swagger2ts https://api.example.com/swagger.json
# 将结果写入文件
swagger2ts https://api.example.com/swagger.json > swagger.ts
npm i @rjgf/swagger2ts
5
1.3.1
Apache-2.0
36.2 kB
13