hyper/lib/actions/index.ts
2023-06-26 16:02:13 +05:30

14 lines
290 B
TypeScript

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