Skip to content

Commit 38c11dc

Browse files
haversnailktsn
authored andcommitted
fix(types): Add devtools to store options type (#1478)
Add `devtools` to store options type test: add test case for devtools type
1 parent a39d076 commit 38c11dc

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

types/index.d.ts

+1
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ export interface StoreOptions<S> {
9898
modules?: ModuleTree<S>;
9999
plugins?: Plugin<S>[];
100100
strict?: boolean;
101+
devtools?: boolean;
101102
}
102103

103104
export type ActionHandler<S, R> = (this: Store<R>, injectee: ActionContext<S, R>, payload?: any) => any;

types/test/index.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ namespace RootModule {
9898
mutations: {
9999
bar (state, payload) {}
100100
},
101-
strict: true
101+
strict: true,
102+
devtools: true
102103
});
103104
}
104105

0 commit comments

Comments
 (0)