SgLy

Results 37 comments of SgLy
trafficstars

在Raspbian Jessie和最新的ArchLinux上同样出现这种情况。Windows客户端可以正常连接,考虑抓个包研究一下……

zlsun/yah3c@d59686c 在Raspbian Jessie上验证可用 (所以是该close了?

@yutouyes 是的……不过issue不是用来聊天的……跟这个issue无关的事情还是发邮件吧?

和 `Page` 不同的是挂在 `Component` 构造器上的自定义属性是不能通过 `this.computed` 来获取的,所以当时没有做这个自定义根属性;实际上单纯支持这个的话,`computed` 的类型也没法推出来的,`computed` 的例子可以参考 https://github.com/wechat-miniprogram/api-typings/blob/master/test/computed.test.d.ts (怎么搞 `behaviors` 带来的类型变动的问题我们也在想办法,不过似乎目前没有比较好的解决方案😂

这个接口设计得不是很 ts……手动改好像容易些,基于现在从文档生成的流程好像有些困难,我看看是不是先改成 `result | result[]` 做个 workaround

`wx.onAppRoute` will not be listed in docs or typings since it is not a public API. Non-public API may be changed or removed at any time without prior notice, use...

定义里提供的 `drawImage` 接口和获取路径还是旧版的,通过 `wx.createCanvasContext` 获取的;新版的通过 `getContext` 获取的暂时还没有支持,现在应该返回的是 `any`。实际使用的时候有遇到问题吗?

正在补了,wechat-miniprogram/minigame-api-typings#3 里也有跟踪

确实有效,改了之后会把 `type: Object` 的情况从 `Record` 限制到具体类型,跑了一下有用例会挂,是个 breaking change,得稍微慎重一点 还有个小问题是 `bool: { type: Boolean, value: true }` 会推导出 `this.data.b: true`,应该是有些太严格了,不过字面量的几个类型可以通过 `T['type']` 来特殊处理掉