hyper/lib/actions/index.ts

15 lines
312 B
TypeScript
Raw Normal View History

2023-07-25 02:39:11 -08:00
import {INIT} from '../../typings/constants';
2023-07-25 01:39:51 -08:00
import type {HyperDispatch} from '../../typings/hyper';
2023-07-25 09:30:19 -08:00
import rpc from '../rpc';
2016-07-13 12:44:24 -08:00
export default function init() {
2020-01-02 09:27:27 -09:00
return (dispatch: HyperDispatch) => {
dispatch({
type: INIT,
effect: () => {
rpc.emit('init', null);
}
});
2016-10-04 11:44:10 -08:00
};
2016-07-13 12:44:24 -08:00
}