mrcrowl / vuex-typex

Typescript builder for strongly-typed access to Vuex Store modules
MIT License
193 stars 22 forks source link

Add dynamic register module #24

Closed rugia813 closed 5 years ago

rugia813 commented 5 years ago

20

add a function 'registerModule' to storeBuilder. if vuexStore() has been called, we can register module like:

storeBuilder.registerModule('Auth')

also add a test for this function, and delete wrong-order test, since it's not a problem anymore.

tested on my app, it works fine.