hyper/lib/actions/index.ts

15 lines
277 B
TypeScript
Raw Normal View History

import rpc from '../rpc';
2019-12-27 06:33:21 -09:00
import {INIT} from '../constants';
import {Dispatch} from 'redux';
2016-07-13 12:44:24 -08:00
export default function init() {
return (dispatch: Dispatch<any>) => {
dispatch({
type: INIT,
effect: () => {
rpc.emit('init', null);
}
});
2016-10-04 11:44:10 -08:00
};
2016-07-13 12:44:24 -08:00
}