minigame-api-typings
minigame-api-typings copied to clipboard
Type definitions for APIs of Wechat Mini Game in TypeScript
或者可以和官方的dom共处,现在console这个全局变量冲突了。

目前请求方式缺少 `PATCH`
参考[微信开放文档](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/reference-sdk-api/init/client.init.html)中新建云开发实例new wx.cloud.Cloud提示不存在Cloud
it should be boolean, but it is string
现在的typings 里 WebAudioContext.decodeAudioData(),不能传入参数,并且返回是同步返回AudioBuffer WebAudioContext类型的实例函数decodeAudioData,实际是需要传入参数的,并且返回也是异步
interface ReconnectOption { /** 需要重连的对局房间唯一标识 */ **accessInfo: number**应该是accessInfo: string /** 接口调用结束的回调函数(调用成功、失败都会执行) */ complete?: ReconnectCompleteCallback /** 接口调用失败的回调函数 */ fail?: ReconnectFailCallback /** 接口调用成功的回调函数 */ success?: ReconnectSuccessCallback }
类型定义当中无法找到数组的map方法  一些基础类型诸如 Number Date Array Symbol 等类型的原型方法全被微信小程序的命名空间覆盖掉了