Closed Lop001 closed 7 years ago
Good idea. Included in v1.0.6.
Instead of a plugins
argument, I've gone with an optional overrideOptions
, which is a partial StoreOptions
export interface StoreBuilder<R> {
/** Get a ModuleBuilder for the namespace provided */
module<S>(namespace: string, state: S): ModuleBuilder<S, R>;
/** Output a Vuex Store after all modules have been built */
vuexStore(): Store<R>
/** Output a Vuex Store and provide options, e.g. plugins -- these take precedence over any auto-generated options */
vuexStore(overrideOptions?: StoreOptions<R>): Store<R>;
}
It works like a charm. Thank you!
It would be great if plugins could be inserted into StoreBuilder.vuexStore()