From f4c097206ca61dc85cfd680e156c9c7f1c07c86a Mon Sep 17 00:00:00 2001 From: Rafa Mel Date: Wed, 24 Apr 2019 23:08:44 +0200 Subject: [PATCH] refactor(state): improves get typings --- src/state/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/state/index.ts b/src/state/index.ts index a251a46..2e1e708 100644 --- a/src/state/index.ts +++ b/src/state/index.ts @@ -49,7 +49,7 @@ export default { this.setOptions(); } }, - get(key: keyof TState): any { + get(key: T): TState[T] { return state[key]; }, paths(): Promise {