Skip to content

Commit 41d1d0f

Browse files
authored
Merge pull request #3 from sirajalam049/patch-1
Typings fixed
2 parents afbbc82 + 9b4553e commit 41d1d0f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

index.d.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1-
type Reducer<State, Action> = (state: State, action: Action) => State;
2-
export type logger<State, Action> = (reducer: Reducer) => Reducer;
1+
declare module "use-reducer-logger" {
2+
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

Comments
 (0)