Skip to content

Bug: ModelEffects 或 createModel 类型定义错误 #154

@LongchongWang

Description

@LongchongWang

@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时能正确解析出第二个参数的类型

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions