AutoJs6-TypeScript-Declarations icon indicating copy to clipboard operation
AutoJs6-TypeScript-Declarations copied to clipboard

AutoJs6 声明文件 (d.ts) AutoJs6 TypeScript Declarations

Results 4 AutoJs6-TypeScript-Declarations issues
Sort by recently updated
recently updated
newest added

Feedback Awaited :clock3: 等待反馈
Recommendation :hammer_and_wrench: 建议

![image](https://github.com/SuperMonster003/AutoJs6-TypeScript-Declarations/assets/3236685/cf05f41c-3cef-4770-8c6f-5ca10f3ec87e) 导致一些全局函数无法识别,例如toast

解决 #4,文档注释改成了重载模式,相关注释都复制了 n 份,没有做修改。

在使用 `http.get` 等 api 发送请求时,如果不填 callback 参数的话是同步执行,函数会 return 一个 response 对象。如果填了这个参数就不会 return 内容。但现在 `http.get` 在不填 callback 参数时返回类型的提示是 `void | Http.WrappedResponse` 而非 `Http.WrappedResponse`。 这样会导致 `resp.body` 被推断成为 any 类型,因此像 `resp.body.string()` 这样的代码就没有类型提示。 翻了下源码,发现...