Skip to content

Commit

Permalink
naming things...
Browse files Browse the repository at this point in the history
  • Loading branch information
esamattis committed Sep 13, 2018
1 parent 21a7058 commit e013328
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/create-thunks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ class SimpleStore {
export function makeThunkCreator<MappedStore>(
mapStore: (store: SimpleStore) => MappedStore,
) {
function createThunk<ThunkArg extends any[], ThunkReturn>(
thunk: (...args: ThunkArg) => (arg: MappedStore) => ThunkReturn,
function createThunk<ThunkArgs extends any[], ThunkReturn>(
thunk: (...args: ThunkArgs) => (arg: MappedStore) => ThunkReturn,
): (
...args: ThunkArg
...args: ThunkArgs
) => (reduxDispatch: ReduxDispatch, getState: GetState) => ThunkReturn {
function myThunk(...args: ThunkArg) {
function myThunk(...args: ThunkArgs) {
return (reduxDispatch: ReduxDispatch, getState: GetState) => {
const mapped = mapStore(
new SimpleStore(reduxDispatch, getState),
Expand Down

0 comments on commit e013328

Please sign in to comment.