Bitter

Results 2 comments of Bitter

类似这种接口声明个人感觉加了范型会更好用(指的是根据选择器的不同,返回的默认 value 的类型 ```typescript /** * value 改变时触发 change 事件 * * event.detail = {value} * * 当 mode = region 时 (最低基础库: 1.4.0) * * value 改变时触发 change 事件,event.detail...

可以参考小程序 computed 的类型声明方式 https://github.com/wechat-miniprogram/computed/blob/master/types/index.d.ts https://github.com/wechat-miniprogram/computed/blob/master/src/index.ts 理想的情况是像 Component 那样通过泛型声明😂 ```typescript ComponentWithStore({ ... }) ```