@4djs/gql-types 中文文档教程
How to use
您可以简单地使用 npx
调用二进制文件:
npx @4djs/gql-types http://localhost:8081/rest/\$catalog/\$all
这将打印接口到标准输出。
您还可以重定向结果以将其保存到特定文件中:
npx @4djs/gql-types http://localhost:8081/rest/\$catalog/\$all > 4d.types.ts
A simple tool to generate interfaces from the rest API catalog
How to use
You can simply call the binary using npx
:
npx @4djs/gql-types http://localhost:8081/rest/\$catalog/\$all
This will print the interfaces into the standard output.
You can also redirect the result to save it into a specific file:
npx @4djs/gql-types http://localhost:8081/rest/\$catalog/\$all > 4d.types.ts