DEV Community

Discussion on: Vuex + TypeScript

Collapse
 
harshgupta3 profile image
Harsh Gupta • Edited

Hey Andrew, thanks for this great example.
can you please help with namespaced modules in vuex4 with typescript

I'm using your suggested way but I'm still getting the error

type Namespaced = {
[P in keyof T & string as ${N}/${P}]: T[P]
}
type NamespacedMutations = Namespaced

error

error