Skip to content
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

Implement VS Code code completion for actions and mutations #1

Open
dashersw opened this issue Jan 23, 2019 · 0 comments
Open

Implement VS Code code completion for actions and mutations #1

dashersw opened this issue Jan 23, 2019 · 0 comments

Comments

@dashersw
Copy link
Owner

Actions and mutations are passed in at regie initialization, but are modified (bound with state scope) and actual actions and mutation functions are returned. Can we use generic types to create types for these on the fly and provide code completion support?

In the following example,

const { actions } = regie({
  actions: {
    increment () {}
  }
})

actions.increment()

typing actions. should present a correct list of all the actions passed in. @ustun

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant