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

/miniprogram-api-typings/types/wx/lib.wx.api.d.ts createBufferURL( /** 需要存入内存的二进制数据 */ buffer: | ArrayBuffer | Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array ): void 应该是返回string 才对...

我的用途是想限制data的类型,方法那些不强制传`CustomOption`泛型 可以给`CustomOption`设置默认值

包括: - `wx.batchSetStorage` - `wx.batchGetStorage` - `wx.getFuzzyLocation` - `wx.sendSms` 等。

![image](https://user-images.githubusercontent.com/38422259/182063828-88370d3b-0ae1-4d1b-839b-ca526fa3d47e.png) 之前的方式被理解为了 string 类型,没有对字符串字面量类型的提示了

![image](https://user-images.githubusercontent.com/33315834/142428311-5a1eafb5-b68b-42a5-bc87-fcd5f2e102b5.png) 这里面如果传入 `shortLink`,那么 `appId` 就可以不填了。,所以 `appId` 不是必填项.....

![image](https://user-images.githubusercontent.com/54386692/143248961-604cb268-161e-4d90-9d08-16822ca913a4.png) 错误提示:类型“Wx”上不存在属性“onUnhandleRejection”。 使用的基础库版本号为2.21.0 使用的miniprogram-api-typings版本为3.4.4

httpDNSServiceId类型应该是string 不是boolean

![image](https://user-images.githubusercontent.com/33315834/161898229-04fc83a9-b2f8-4186-a63c-d0a467f52562.png) 旧版本通过的代码现在会报错

文档:[https://developers.weixin.qq.com/minigame/dev/api/util/wx.encode.html](https://developers.weixin.qq.com/minigame/dev/api/util/wx.encode.html)。