Rename and re-type generateAuthActions export

This commit is contained in:
Kyle Corbelli committed 2017-09-03 06:50:52 -07:00
1 parent 57e3e27d08
commit 2a5fbe140c
6 files changed
+11 -9

No files matched your search

+2 -2
View File
@@ -105,7 +105,7 @@ export const signOutRequestFailed = (): SignOutRequestFailedAction => ({
// Async Redux Thunk actions:
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
const theActionsExportThatShouldBeRenamed = (authUrl: string): ActionsExport => {
const generateAuthActions = (authUrl: string): ActionsExport => {
const registerUser = (
userRegistrationDetails: UserRegistrationDetails,
) => async function (dispatch: Dispatch<{}>): Promise<void> {
@@ -221,4 +221,4 @@ const theActionsExportThatShouldBeRenamed = (authUrl: string): ActionsExport =>
}
}
export default theActionsExportThatShouldBeRenamed
export default generateAuthActions
+2 -2
View File
@@ -1,8 +1,8 @@
import theActionsExportThatShouldBeRenamed from './actions'
import generateAuthActions from './actions'
import reduxTokenAuthReducer from './reducers'
export {
theActionsExportThatShouldBeRenamed,
generateAuthActions,
reduxTokenAuthReducer,
}
+2
View File
@@ -163,3 +163,5 @@ export interface ActionsExport {
readonly signInUser: ReduxAsyncAction
readonly signOutUser: ReduxAsyncAction
}
export type ActionsGeneratorExport = (authUrl: string) => ActionsExport