Skip to content

Commit

Permalink
Merge pull request DefinitelyTyped#23970 from skeate/master
Browse files Browse the repository at this point in the history
[recompose] Make StateHandler use Partial<TState>
  • Loading branch information
armanio123 authored Mar 8, 2018
2 parents 6bbe8ff + ab744a9 commit 7c30c3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/recompose/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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>;
};
Expand Down

0 comments on commit 7c30c3e

Please sign in to comment.