Skip to content

Commit 7e5a829

Browse files
committed
Fix higher-order store type signature
1 parent 9de7445 commit 7e5a829

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/types-and-terminology.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ A store-creating function is a function that creates a Redux store. Like with di
9797
### Higher-order store
9898

9999
```js
100-
type HigherOrderStore = CreateStore
100+
type HigherOrderStore = (next: CreateStore) => CreateStore
101101
```
102102

103103
A higher-order store is a higher-order function that composes a store-creating function to return a new store-creating function. This is similar to middleware in that it allows you to alter the store interface in a composable way.

0 commit comments

Comments
 (0)