regie
regie copied to clipboard
Implement VS Code code completion for actions and mutations
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