mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-13 04:28:41 -09:00
* 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
14 lines
275 B
TypeScript
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);
|
|
}
|
|
});
|
|
};
|
|
}
|