Merge pull request #23970 from skeate/master

[recompose] Make StateHandler use Partial<TState>
This commit is contained in:
Armando Aguirre
2018-03-08 12:48:46 -08:00
committed by GitHub
+1 -1
View File
@@ -133,7 +133,7 @@ declare module 'recompose' {
>;
// withStateHandlers: https://github.com/acdlite/recompose/blob/master/docs/API.md#withstatehandlers
type StateHandler<TState> = (...payload: any[]) => TState | undefined;
type StateHandler<TState> = (...payload: any[]) => Partial<TState> | undefined;
type StateHandlerMap<TState> = {
[updaterName: string]: StateHandler<TState>;
};