mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-12 20:18:41 -09:00
14 lines
312 B
TypeScript
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);
|
|
}
|
|
});
|
|
};
|
|
}
|