Skip to content

Commit

Permalink
use the new action types (reduxjs#3545)
Browse files Browse the repository at this point in the history
Former-commit-id: 66cc166
  • Loading branch information
cellog authored and timdorr committed Aug 30, 2019
1 parent b5ea210 commit 0a0a227
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/applyMiddleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import {
Middleware,
StoreEnhancer,
StoreCreator,
AnyAction,
Reducer,
Dispatch,
MiddlewareAPI
} from '..'
import { AnyAction } from './types/actions'

/**
* Creates a store enhancer that applies middleware to the dispatch method
Expand Down
7 changes: 6 additions & 1 deletion src/bindActionCreators.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
import { AnyAction, ActionCreator, Dispatch, ActionCreatorsMapObject } from '..'
import { Dispatch } from '..'
import {
AnyAction,
ActionCreator,
ActionCreatorsMapObject
} from './types/actions'

function bindActionCreator<A extends AnyAction = AnyAction>(
actionCreator: ActionCreator<A>,
Expand Down
2 changes: 1 addition & 1 deletion src/combineReducers.ts.REMOVED.git-id
Original file line number Diff line number Diff line change
@@ -1 +1 @@
42691950e3b351c836a37fda08fa8d6f5d052385
402fc6d7e502d7c9fb6450f48bcbe43a1dcd12e8
2 changes: 1 addition & 1 deletion src/createStore.ts.REMOVED.git-id
Original file line number Diff line number Diff line change
@@ -1 +1 @@
cbc954bb8c9688cd014951a75bef197119914017
da754875a81048fcc337bcf30aa8cf48db423aca
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ export {
ActionFromReducersMapObject
} from '..'
// action creators
export { ActionCreator, ActionCreatorsMapObject } from '..'
export { ActionCreator, ActionCreatorsMapObject } from './types/actions'
// middleware
export { MiddlewareAPI, Middleware } from '..'
// actions
export { Action, AnyAction } from '..'
export { Action, AnyAction } from './types/actions'

/*
* This is a dummy function to check if the function name has been altered by minification.
Expand Down

0 comments on commit 0a0a227

Please sign in to comment.