tua-api icon indicating copy to clipboard operation
tua-api copied to clipboard

🏗 一款可配置的通用 api 请求函数生成工具(A common tool helps converting configs to api functions)

Results 3 tua-api issues
Sort by recently updated
recently updated
newest added

**你的功能请求是否与某些问题相关?请描述** 当某个api的参数过多时,如果只有一个参数是需要对象控制的,那要把所有的参数都改写成对象,这样有点不友好,改动成本有点高 **描述您想要的解决方案** 能不能两者都支持,类似这样: ```js [ 'userId', 'date', { 'status': '0', }, { 'foo': 1, }, { 'bar': { required: true }, } ] ``` 当数组中的对象类型的参数中有多个 key 时,直接抛出错误。 ```js [...

enhancement

* 参考资料 * http://www.typescriptlang.org/ * https://www.tslang.cn/ * 重构步骤 * [x] 添加 `.d.ts` 声明文件 * [ ] 整体重构

enhancement

https://developer.mozilla.org/zh-CN/docs/Web/API/Fetch_API/Using_Fetch

enhancement