Skip to content

Commit

Permalink
Fix typescript test of store enhancer
Browse files Browse the repository at this point in the history
  • Loading branch information
Igorbek committed Apr 5, 2016
1 parent 324849d commit 9db3dd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/typescript/store.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {
Store, createStore, Reducer, Action, StoreEnhancer, GenericStoreEnhancer,
StoreCreator, Unsubscribe
StoreCreator, StoreEnhancerStoreCreator, Unsubscribe
} from "../../index.d.ts";


Expand All @@ -21,7 +21,7 @@ const storeWithInitialState: Store<State> = createStore(reducer, {
todos: []
});

const genericEnhancer: GenericStoreEnhancer = next => next;
const genericEnhancer: GenericStoreEnhancer = <S>(next: StoreEnhancerStoreCreator<S>) => next;
const specificEnhencer: StoreEnhancer<State> = next => next;

const storeWithGenericEnhancer: Store<State> = createStore(reducer, genericEnhancer);
Expand Down

0 comments on commit 9db3dd4

Please sign in to comment.