hyper/lib/actions/index.ts
2020-01-02 21:11:35 +01:00

14 lines
285 B
TypeScript

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);
}
});
};
}