ktsn / sinai

Class based state management for Vue

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Root module store type definition doesnt work with getters, actions, mutations

namnm opened this issue · comments

Hi, here is the code copied from README. I have an issue that it says counter does not exist on getters, actions or mutations. Only state works though. The code added on a fresh vue2 app: sinai 0.2.6, typescript 3.9.3

Screen Shot 2021-01-18 at 20 53 08

If remove root then use const store = createStore(counter) then it works correctly, but afterward there's no point of combined root for complex use case.

It works now.