import { TypedUseSelectorHook, useSelector } from 'react-redux'; import { select } from 'redux-saga/effects'; import { IApplicationState } from '../../definitions'; export const useAppSelector: TypedUseSelectorHook = useSelector; export function* appSelector(selector: (state: IApplicationState) => TSelected): Generator { return yield select(selector); }