New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider implementing vuex helpers #14

Closed
sobolevn opened this Issue May 6, 2018 · 2 comments

Comments

Projects
None yet
1 participant
@sobolevn
Owner

sobolevn commented May 6, 2018

I really like this approach. Let's see if it works. https://github.com/ktsn/vuex-type-helper
It should not be really hard to convert to flow.

@sobolevn sobolevn added the enhancement label May 6, 2018

@sobolevn sobolevn self-assigned this May 6, 2018

@sobolevn

This comment has been minimized.

Owner

sobolevn commented May 6, 2018

@ktsn are you interested in helping me?

@sobolevn

This comment has been minimized.

Owner

sobolevn commented May 9, 2018

This would be almost impossible because of these lines:

/**
 * Annotate dispatch/commit type with declared actions/mutations type
 */
store.dispatch<Dispatcher<CounterActions>>({
  type: 'incAsync',
  amount: 1,
  delay: 1000
})

store.commit<Committer<CounterMutations>>({
  type: 'inc',
  amount: 1
})

@sobolevn sobolevn closed this May 9, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment