import { getContext } from "redux-saga/effects" ; export const getDependency = function * < TDependencies , TKey extends keyof TDependencies > ( key ) { const dependencies = yield getContext ( "dependencies" ) ; return dependencies [ key ] ; } ;