We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents afbbc82 + 9b4553e commit 41d1d0fCopy full SHA for 41d1d0f
index.d.ts
@@ -1,2 +1,5 @@
1
-type Reducer<State, Action> = (state: State, action: Action) => State;
2
-export type logger<State, Action> = (reducer: Reducer) => Reducer;
+declare module "use-reducer-logger" {
+ type Reducer<State = any, Action = any> = (state: State, action: Action) => State;
3
+ const logger = <State>(reducer: Reducer<State, Action>): Reducer<State, Action> => Reducer;
4
+ export default logger
5
+}
0 commit comments