Skip to content

Commit

Permalink
reduxjs#2808 Preloaded state is now selectively partial (instead of d…
Browse files Browse the repository at this point in the history
…eeply partial). (reduxjs#3485)

* Preloaded state is now selectively partial (instead of deeply partial).

* Improved CombinedState, PreloadedState, and removed UnCombinedState.

Found a better way to type check CombinedState which allows the
$CombinedState symbol property marker to be optional. Since it's
optional, it's no longer necessary to strip it off in the Reducer state
parameter type and return type. This leaves the type definition for
Reducer unmodified, reduces the number of types required by one, and
makes the resolved types and stack traces clearer.

* Small change to the description of CombinedState.

* Removed DeepPartial import from tests.

Leaving the definition in place as removing it would be a breaking change.

* Made prettier happy.

* Made prettier happy with UsingObjectSpreadOperator.md


Former-commit-id: 41c0612
Former-commit-id: b41174f
  • Loading branch information
Shakeskeyboarde authored and timdorr committed Aug 12, 2019
1 parent ec01636 commit febedbd
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/recipes/UsingObjectSpreadOperator.md.REMOVED.git-id
Original file line number Diff line number Diff line change
@@ -1 +1 @@
cb129f33158f8a02f2b0ec72511faf3da73a1a37
fa860b867a287c5aa13c7bbec2eac51325c729fa
2 changes: 1 addition & 1 deletion index.d.ts.REMOVED.git-id
Original file line number Diff line number Diff line change
@@ -1 +1 @@
c9c5a57d757e5b58e699c9b8ec15a14e5843521f
50e8d018faee8887ed82337fcd1993ad07df0968
2 changes: 1 addition & 1 deletion test/typescript/enhancers.ts.REMOVED.git-id
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4670f29f78aade9453c206425cb2c6bab6f7de8b
7259b4884bf70423a7abbd95ced2ef45a9a760c1
2 changes: 1 addition & 1 deletion test/typescript/store.ts.REMOVED.git-id
Original file line number Diff line number Diff line change
@@ -1 +1 @@
fb1974ab41bb16bb649e4770ee9e0feae860755d
123464ce556358be71cad6cb468910c36c2f9a39

0 comments on commit febedbd

Please sign in to comment.