Commit 165e911
committed
Adjust Type Definition
Fix several problems with the type definition:
1. Initializing a `const` in a type declaration is not allowed and
results in the error "A 'const' initializer in an ambient context must
be a string or numeric literal or literal enum reference.ts(1254)".
2. The returned reducer had no strongly typed dispatch, losing
type-safety.
3. The returned reducer did not accept dispatch without any action,
which is a supported use case.1 parent 0073544 commit 165e911
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
| 4 | + | |
5 | 5 | | |
0 commit comments