hyper/lib/actions/index.ts
Labhansh Agrawal 36ff6e9b95 sort imports
2023-07-26 00:16:14 +05:30

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