From 38c11dcbaea7d7e661a1623cabb5aef7c6e47ba7 Mon Sep 17 00:00:00 2001 From: Alex Havermale Date: Tue, 1 Jan 2019 17:56:21 -0500 Subject: [PATCH] fix(types): Add `devtools` to store options type (#1478) Add `devtools` to store options type test: add test case for devtools type --- types/index.d.ts | 1 + types/test/index.ts | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/types/index.d.ts b/types/index.d.ts index a3612228a..82593d048 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -98,6 +98,7 @@ export interface StoreOptions { modules?: ModuleTree; plugins?: Plugin[]; strict?: boolean; + devtools?: boolean; } export type ActionHandler = (this: Store, injectee: ActionContext, payload?: any) => any; diff --git a/types/test/index.ts b/types/test/index.ts index c417c8bb7..288a5737f 100644 --- a/types/test/index.ts +++ b/types/test/index.ts @@ -98,7 +98,8 @@ namespace RootModule { mutations: { bar (state, payload) {} }, - strict: true + strict: true, + devtools: true }); }