mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-03 19:51:53 +00:00
Update to types/recompose package withStateHandler to give stateUpdaters typed arguments rather than
This commit is contained in:
Vendored
+1
-1
@@ -151,7 +151,7 @@ declare module 'recompose' {
|
||||
[updaterName: string]: StateHandler<TState>;
|
||||
};
|
||||
type StateUpdaters<TOutter, TState, TUpdaters> = {
|
||||
[updaterName in keyof TUpdaters]: (state: TState, props: TOutter) => StateHandler<TState>;
|
||||
[updaterName in keyof TUpdaters]: (state: TState, props: TOutter) => TUpdaters[updaterName];
|
||||
};
|
||||
export function withStateHandlers<TState, TUpdaters extends StateHandlerMap<TState>, TOutter = {}>(
|
||||
createProps: TState | mapper<TOutter, TState>,
|
||||
|
||||
Reference in New Issue
Block a user