Skip to content

Commit

Permalink
tweak type requirements and export ThunkOverload
Browse files Browse the repository at this point in the history
  • Loading branch information
EskiMojo14 committed Jun 29, 2024
1 parent 61e9e4d commit fdb2e15
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ export type {
ThunkAction,
ThunkDispatch,
ThunkActionDispatch,
ThunkMiddleware
ThunkMiddleware,
ThunkOverload
} from './types'

/** A function that accepts a potential "extra argument" value to be injected later,
Expand Down
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,5 +97,5 @@ export type ThunkMiddleware<
> = Middleware<
ThunkOverload<State, ExtraThunkArg>,
State,
ThunkDispatch<State, ExtraThunkArg, BasicAction>
Dispatch<BasicAction>
>

0 comments on commit fdb2e15

Please sign in to comment.