hyper/lib/actions/index.ts
2023-07-25 16:49:24 +05:30

14 lines
312 B
TypeScript

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