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

Type definitions for APIs of Wechat Mini Program in TypeScript

Results 100 api-typings issues
Sort by recently updated
recently updated
newest added

The type of `gridSize` should be number

## 疑问 1. 通过微信开发者工具创建的 TS 项目,里面有 TS 类型声明文件,我对比过这个仓库的类型声明文件大部分是同步,小部分有差别。 2. 请问作者有考虑和微信官方的 TS 项目类型声明文件自动保持一致吗? 3. 通过 `npm install @types/wechat-miniprogram` 和通过 `npm install miniprogram-api-typings` 下载过来的类型声明文件差别更大,这两个包请问有考虑同步吗?其实我更倾向于通过 `npm install @types/wechat-miniprogram` 下载,但是看更新时间,至少滞后了至少半年。 ## 感谢 🌹 感谢开源贡献者。

![image](https://user-images.githubusercontent.com/56538408/197396149-891e6f20-fef2-42b6-b07f-cff309c247e3.png)

![image](https://user-images.githubusercontent.com/30518686/202635973-56cd251b-1752-4f2b-a947-ae1f7d8af249.png) 取消监听网络状况时的函数应该是和监听网络状况的函数是同一个,但目前传递同一个会导致类型异常

Bumps [braces](https://github.com/micromatch/braces) from 3.0.2 to 3.0.3. Commits 74b2db2 3.0.3 88f1429 update eslint. lint, fix unit tests. 415d660 Snyk js braces 6838727 (#40) 190510f fix tests, skip 1 test in test/braces.expand...

dependencies

Bug Type: **Api** # Environment - miniprogram-api-typings `3.12.1"` - libVersion `3.1.4` # Reproduction ## Related API wx.openBusinessView() ## code: ### bug: ```ts wx.openBusinessView({ businessType: 'wxpayScoreUse', extraData: res.data, }) ``` ![image](https://github.com/wechat-miniprogram/api-typings/assets/79004055/96033dbf-f3ea-4f73-a6ce-10cbf3eca2e7)...

``` declare function setInterval( /** 回调函数 */ callback: (...args: any[]) => any, /** 执行回调函数之间的时间间隔,单位 ms。 */ delay?: number, /** param1, param2, ..., paramN 等附加参数,它们会作为参数传递给回调函数。 */ rest?: any ): number /**...

注意看代码中的 `OUT` 和 `IN`,这样做的好处是不需要额外的使用 `as` 语句了 ```typescript async function CustomRequest< OUT extends string | WechatMiniprogram.IAnyObject | ArrayBuffer = | string | WechatMiniprogram.IAnyObject | ArrayBuffer, IN extends string | WechatMiniprogram.IAnyObject |...

增加组件所在页面的生命周期routeDone声明