Skip to content

Commit

Permalink
chore(gatsby): Convert redux/actions/index to TS (#22063)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDeBoey authored Mar 8, 2020
1 parent eda7385 commit f0724e8
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 25 deletions.
25 changes: 0 additions & 25 deletions packages/gatsby/src/redux/actions/index.js

This file was deleted.

23 changes: 23 additions & 0 deletions packages/gatsby/src/redux/actions/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { bindActionCreators } from "redux"

import { store } from ".."

import * as internalActions from "./internal"
import { actions as publicActions } from "./public"
import {
actions as restrictedActions,
availableActionsByAPI,
} from "./restricted"

export const actions = {
...internalActions,
...publicActions,
...restrictedActions,
}

// Deprecated, remove in v3
export const boundActionCreators = bindActionCreators(actions, store.dispatch)

export const restrictedActionsAvailableInAPI = availableActionsByAPI

export { internalActions, publicActions, restrictedActions }

0 comments on commit f0724e8

Please sign in to comment.