diff --git a/types/recompose/index.d.ts b/types/recompose/index.d.ts index 9e96ee366a..ad855cae69 100644 --- a/types/recompose/index.d.ts +++ b/types/recompose/index.d.ts @@ -134,20 +134,13 @@ declare module 'recompose' { // withStateHandlers: https://github.com/acdlite/recompose/blob/master/docs/API.md#withstatehandlers type StateHandler = (...payload: any[]) => TState | undefined; - type StateHandlerMap = { [updaterName: string]: StateHandler; }; - type StateUpdaters = { [updaterName in keyof TUpdaters]: (state: TState, props: TOutter) => StateHandler; }; - - export function withStateHandlers< - TState, - TUpdaters extends StateHandlerMap, - TOutter extends {} = {} - >( + export function withStateHandlers, TOutter = {}>( createProps: TState | mapper, stateUpdaters: StateUpdaters, ): InferableComponentEnhancerWithProps;