Skip to content

Commit

Permalink
feat(typings): add provideStore typings
Browse files Browse the repository at this point in the history
  • Loading branch information
arutkowski00 committed Aug 29, 2018
1 parent e7b3bfe commit 7ea48db
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Action, AnyAction, Unsubscribe } from 'redux';
import { Action, AnyAction, Store, Unsubscribe } from 'redux';

declare namespace ngRedux {

Expand Down Expand Up @@ -118,6 +118,14 @@ declare namespace ngRedux {
* @param initialState
*/
createStoreWith<S = any, I = any>(reducer: Reducer<S>, middlewares?: (Middleware | string)[], storeEnhancers?: Function[], initialState?: I): void;
/**
* Initializes ngRedux with an existing Redux store.
*
* @param store
* @param middlewares
* @param storeEnhancers
*/
provideStore<S = any>(store: Store<S>, middlewares?: (Middleware | string)[], storeEnhancers?: Function[]): void;
/**
* ngRedux config object
*/
Expand All @@ -127,4 +135,4 @@ declare namespace ngRedux {

declare var ngRedux: string;
export as namespace ngRedux;
export default ngRedux;
export default ngRedux;

0 comments on commit 7ea48db

Please sign in to comment.