Skip to content

Commit cefb03a

Browse files
authored
Merge pull request #1806 from raineorshine/patch-1
preloadedState is optional
2 parents 4b63737 + 7e650ad commit cefb03a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ export interface StoreCreator {
218218
*/
219219
export type StoreEnhancer<S> = (next: StoreEnhancerStoreCreator<S>) => StoreEnhancerStoreCreator<S>;
220220
export type GenericStoreEnhancer = <S>(next: StoreEnhancerStoreCreator<S>) => StoreEnhancerStoreCreator<S>;
221-
export type StoreEnhancerStoreCreator<S> = (reducer: Reducer<S>, preloadedState: S) => Store<S>;
221+
export type StoreEnhancerStoreCreator<S> = (reducer: Reducer<S>, preloadedState?: S) => Store<S>;
222222

223223
/**
224224
* Creates a Redux store that holds the state tree.

0 commit comments

Comments
 (0)