Skip to content

Commit 926f76e

Browse files
committed
Return type SubModuleObject instead of instance of VuexModule
1 parent c54939b commit 926f76e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/module.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ export type VuexClassConstructor<T> = new () => T
88

99
export class VuexModule {
1010

11-
static CreateSubModule<V extends typeof VuexModule>(SubModule: V) {
11+
static CreateSubModule<V extends typeof VuexModule>(SubModule: V) :SubModuleObject {
1212
return {
1313
type: _submodule,
1414
store: SubModule,
15-
} as InstanceType<V>
15+
}
1616
}
1717

1818
static CreateProxy<V extends typeof VuexModule>($store: Store<any>, cls: V) {

0 commit comments

Comments
 (0)