...in fact Typescript features mean that Typescript doesn't force inference (and hence excess property checks) of the Patcher function, without an explicit declaration like this, which is probably worse...
store.patch((state): State => ({
...state,
roses.white
}))
Consequently unless an alternative can be found, the Store API should have patch() removed before 2.0.0.
Although the patch() signature looked promising to eliminate potentially unpleasant syntax like...
...in favour of
...in fact Typescript features mean that Typescript doesn't force inference (and hence excess property checks) of the Patcher function, without an explicit declaration like this, which is probably worse...
Consequently unless an alternative can be found, the Store API should have
patch()
removed before 2.0.0.