icestore icon indicating copy to clipboard operation
icestore copied to clipboard

Bug: ModelEffects 或 createModel 类型定义错误

Open LongchongWang opened this issue 1 year ago • 3 comments

@ice/store version: 2.0.3

Steps To Reproduce

  1. 下载 @ice/store 源码
  2. 进入 example/todos 文件夹
  3. npm i
  4. 修改 src/models/todos.ts 文件的 effects,查看第二个参数的类型

通读了 docs 文件夹下的所有文档,没有找到解决办法。我个人定位的原因是 ModelEffects 类型定义错误导致。

Link to code example:

The current behavior

image image

The expected behavior

定义effects时能正确解析出第二个参数的类型

LongchongWang avatar May 23 '23 06:05 LongchongWang