Skip to content

Commit

Permalink
fix(typings): correct import, default values state/getters
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Sep 20, 2018
1 parent 3a714bb commit 11c21fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Mock } from 'jest'
import 'jest'

type Dict = Record<string, any>

Expand All @@ -13,7 +13,7 @@ interface StoreConstructorOptions<S extends Dict, G extends Dict, Spy> {
spy?: SpyCreator<Spy>
}

export class Store<S extends Dict, G extends Dict, Spy = jest.Mock> {
export class Store<S extends Dict = {}, G extends Dict = {}, Spy = jest.Mock> {
commit: Spy
dispatch: Spy
state: S
Expand Down

0 comments on commit 11c21fa

Please sign in to comment.