hyper/lib/actions/index.ts
Labhansh Agrawal 537c746c75 porting files in lib/ actions, reducers and utils/plugins to ts (#3887)
* add type definitions

* rename files in lib/actions

* rename files from lib/reducers to ts

* renamed plugins.js to ts

* Add hyper types

* Fix ts errors in lib/reducers

* Fix ts errors in lib/actions

* Fix ts errors in plugins.ts
2019-10-19 18:59:56 +02:00

14 lines
275 B
TypeScript

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