hyper/lib/actions/index.ts
2019-12-29 15:55:53 +01:00

14 lines
277 B
TypeScript

import rpc from '../rpc';
import {INIT} from '../constants';
import {Dispatch} from 'redux';
export default function init() {
return (dispatch: Dispatch<any>) => {
dispatch({
type: INIT,
effect: () => {
rpc.emit('init', null);
}
});
};
}