hyper/lib/actions/index.ts
2023-07-25 15:34:59 +05:30

14 lines
301 B
TypeScript

import rpc from '../rpc';
import {INIT} from '../constants';
import type {HyperDispatch} from '../../typings/hyper';
export default function init() {
return (dispatch: HyperDispatch) => {
dispatch({
type: INIT,
effect: () => {
rpc.emit('init', null);
}
});
};
}