api-typings
api-typings copied to clipboard
Type definitions for APIs of Wechat Mini Program in TypeScript
/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` 等。
 之前的方式被理解为了 string 类型,没有对字符串字面量类型的提示了
 这里面如果传入 `shortLink`,那么 `appId` 就可以不填了。,所以 `appId` 不是必填项.....
 错误提示:类型“Wx”上不存在属性“onUnhandleRejection”。 使用的基础库版本号为2.21.0 使用的miniprogram-api-typings版本为3.4.4
httpDNSServiceId类型应该是string 不是boolean
 旧版本通过的代码现在会报错
文档:[https://developers.weixin.qq.com/minigame/dev/api/util/wx.encode.html](https://developers.weixin.qq.com/minigame/dev/api/util/wx.encode.html)。