import { ActionType } from "typesafe-actions" ; import { put } from "redux-saga/effects" ; import { moveBookmark } from "./../services/chromeService" ; import { actions } from "../actions/index" ; export const moveBookmarkSaga = function * ( action ) { const { bookmark , oldIndex , newIndex } = action . payload ; yield moveBookmark ( bookmark , oldIndex , newIndex ) ; yield put ( actions . moveBookmarkSuccess ( ) ) ; } ;