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

Type definitions for APIs of Wechat Mini Program in TypeScript

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

补全了一些缺失的类型。 Fixes #235 #302 #303 #304

https://github.com/wechat-miniprogram/api-typings/blob/9f98eb400708f92c45781b35013f01407c16cd82/types/wx/lib.wx.component.d.ts#L67-L83 https://developers.weixin.qq.com/miniprogram/dev/framework/custom-component/glass-easel/chaining-api.html 与文档出入较大,缺少相关定义

正确的类型应该是一个resolve和一个info,然而实际上是{errMsg:string}

You can get ref from this.setData({ keyA }) where keyA is a key of data, but when it is property, it can not be.

为啥components对于某个this.data.prop,如果为js,cmd+左键跳转对应的属性,而使用ts却不能跳转

```ts interface MediaFile { /** 视频的时间长度 */ duration: number /** 视频的高度 */ height: number /** 本地临时文件大小,单位 B */ size: number /** 本地临时文件路径 (本地路径) */ tempFilePath: string /** 视频缩略图临时文件路径 */ thumbTempFilePath:...

为什么独立npm包和DefinitelyTyped 的更新时间和版本号都不一样? 内容我没有对比,不确定是否一样 https://www.npmjs.com/package/miniprogram-api-typings https://www.npmjs.com/package/@types/wechat-miniprogram

以下为实例代码 (小程序代码片段不支持TS) [小程序组件 properties 类型推断.zip](https://github.com/wechat-miniprogram/api-typings/files/12645950/properties.zip) 核心代码

Ref: https://developers.weixin.qq.com/miniprogram/dev/reference/configuration/app.html#enablePassiveEvent Screenshots: ![image](https://github.com/wechat-miniprogram/api-typings/assets/33315834/89dc168f-e47c-44f0-b51f-7b712dd78c26)