Rename and re-type generateAuthActions export
This commit is contained in:
1 parent
57e3e27d08
commit
2a5fbe140c
6 files changed
+11
-9
No files matched your search
+2
-2
@@ -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
@@ -1,8 +1,8 @@
|
||||
import theActionsExportThatShouldBeRenamed from './actions'
|
||||
import generateAuthActions from './actions'
|
||||
import reduxTokenAuthReducer from './reducers'
|
||||
|
||||
export {
|
||||
theActionsExportThatShouldBeRenamed,
|
||||
generateAuthActions,
|
||||
reduxTokenAuthReducer,
|
||||
}
|
||||
|
||||
|
||||
@@ -163,3 +163,5 @@ export interface ActionsExport {
|
||||
readonly signInUser: ReduxAsyncAction
|
||||
readonly signOutUser: ReduxAsyncAction
|
||||
}
|
||||
|
||||
export type ActionsGeneratorExport = (authUrl: string) => ActionsExport
|
||||
Reference in new issue
Block a user