Skip to content

Commit be503b6

Browse files
lewis500nathanbuchar
authored andcommitted
fix: TypeScript types uses default export
typescript was throwing an error...i think because in js the default export is useThunkReducer but in typescript there's no default.
1 parent b3a4617 commit be503b6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

types/thunk-reducer.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ export interface Thunk<S, A> {
44
(dispatch: Dispatch<A | Thunk<S, A>>, getState: () => S): void
55
}
66

7-
export function useThunkReducer<S, A>(reducer: Reducer<S, A>, initialArg: S, init?: (s: S) => S): [S, Dispatch<A | Thunk<S, A>>]
7+
export default function useThunkReducer<S, A>(reducer: Reducer<S, A>, initialArg: S, init?: (s: S) => S): [S, Dispatch<A | Thunk<S, A>>]

0 commit comments

Comments
 (0)