mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 14:27:04 +00:00
Merge pull request #23970 from skeate/master
[recompose] Make StateHandler use Partial<TState>
This commit is contained in:
Vendored
+1
-1
@@ -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>;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user