regie icon indicating copy to clipboard operation
regie copied to clipboard

Implement VS Code code completion for actions and mutations

Open dashersw opened this issue 6 years ago • 0 comments

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

dashersw avatar Jan 23 '19 12:01 dashersw