/
githubmirror
/
hyper
Обзор
Документация
Войти
/
githubmirror
/
hyper
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v3.2.2
lib/actions/index.ts
14 строк
285 B
Labhansh Agrawal
add/update action creators types
02 янв 2020, 23:11
02 янв 2020, 23:11
9485b32
Код
Авторство
О чём код?
import rpc from '../rpc'; import {INIT} from '../constants'; import {HyperDispatch} from '../hyper'; export default function init() { return (dispatch: HyperDispatch) => { dispatch({ type: INIT, effect: () => { rpc.emit('init', null); } }); }; }