hyper/builder/lib/actions/index.ts
2025-08-10 02:06:07 -04:00

14 lines
312 B
TypeScript

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