From e013328602670e203bca2ac49862a33eae25d906 Mon Sep 17 00:00:00 2001 From: Esa-Matti Suuronen Date: Fri, 14 Sep 2018 00:38:11 +0300 Subject: [PATCH] naming things... --- src/create-thunks.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/create-thunks.ts b/src/create-thunks.ts index 4014bbf..510107e 100644 --- a/src/create-thunks.ts +++ b/src/create-thunks.ts @@ -44,12 +44,12 @@ class SimpleStore { export function makeThunkCreator( mapStore: (store: SimpleStore) => MappedStore, ) { - function createThunk( - thunk: (...args: ThunkArg) => (arg: MappedStore) => ThunkReturn, + function createThunk( + 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),