Skip to content

Commit

Permalink
Mark StoreCreator's preloadedState argument as optional (#3080)
Browse files Browse the repository at this point in the history
  • Loading branch information
srittau authored and timdorr committed Jul 31, 2018
1 parent d380986 commit 3cb7b8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ export type DeepPartial<T> = { [K in keyof T]?: DeepPartial<T[K]> };
*/
export interface StoreCreator {
<S, A extends Action, Ext, StateExt>(reducer: Reducer<S, A>, enhancer?: StoreEnhancer<Ext, StateExt>): Store<S & StateExt, A> & Ext;
<S, A extends Action, Ext, StateExt>(reducer: Reducer<S, A>, preloadedState: DeepPartial<S>, enhancer?: StoreEnhancer<Ext>): Store<S & StateExt, A> & Ext;
<S, A extends Action, Ext, StateExt>(reducer: Reducer<S, A>, preloadedState?: DeepPartial<S>, enhancer?: StoreEnhancer<Ext>): Store<S & StateExt, A> & Ext;
}

/**
Expand Down

0 comments on commit 3cb7b8d

Please sign in to comment.