Open kkaatii opened 3 weeks ago
用的版本是?
请参考 #47 和 #51 。
你们更新了src/index.ts
,但是TS类型推导使用了types/index.d.ts
。后面这个文件里的类型定义还是3.X版本的。
Sorry 。 4.0.0 发布有问题,发布了 4.0.1 来修复。
另外, actions 段的末尾需要加一个 as const
,如:
storeBindings: {
store,
fields: ...,
actions: {
update: 'updateNum',
} as const,
},
实例代码片段如下: