Infer the property name in namespaces too
Samitier opened this issue · 2 comments
Samitier commented
Hello,
Right now, thanks to #1, we can use the decorator without parameters:
@State foo
@Getter bar
@Action baz
But when using modules and namespaces, the decorator parameter is still mandatory:
const someModule = namespace('path/to/module')
[...]
@someModule.State('foo') foo
Would it be possible to infer the property name in namespaces too to make the code more consistent?
Thanks!
ktsn commented
Well, you already can omit property name on namespaced helpers. https://github.com/ktsn/vuex-class/blob/master/test/bindings.ts#L81