Skip to content

Commit

Permalink
fix(types): Add devtools to store options type (#1478)
Browse files Browse the repository at this point in the history
Add `devtools` to store options type

test: add test case for devtools type
  • Loading branch information
haversnail authored and ktsn committed Apr 23, 2020
1 parent a39d076 commit 38c11dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ export interface StoreOptions<S> {
modules?: ModuleTree<S>;
plugins?: Plugin<S>[];
strict?: boolean;
devtools?: boolean;
}

export type ActionHandler<S, R> = (this: Store<R>, injectee: ActionContext<S, R>, payload?: any) => any;
Expand Down
3 changes: 2 additions & 1 deletion types/test/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ namespace RootModule {
mutations: {
bar (state, payload) {}
},
strict: true
strict: true,
devtools: true
});
}

Expand Down

0 comments on commit 38c11dc

Please sign in to comment.