Skip to content
This repository has been archived by the owner on May 20, 2022. It is now read-only.

Commit

Permalink
fix: ReducerStoreInterface should have the store name and getState pr…
Browse files Browse the repository at this point in the history
…operties
  • Loading branch information
ighormartins authored and jhonnymichel committed Nov 27, 2019
1 parent 5ca1e73 commit 84eef8d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions types/index.d.ts
Expand Up @@ -27,6 +27,8 @@ declare module 'react-hookstore' {
}

export interface ReducerStoreInterface<TState, TPayload = any> {
readonly name: string;
getState(): TState;
dispatch<TPayload>(payload: TPayload, callback?: StateCallback<TState>): void;
}

Expand Down

0 comments on commit 84eef8d

Please sign in to comment.