hyper/lib/actions/config.ts
2020-04-27 22:53:49 +02:00

19 lines
421 B
TypeScript

import {CONFIG_LOAD, CONFIG_RELOAD} from '../constants/config';
import {HyperActions} from '../hyper';
import {configOptions} from '../config';
export function loadConfig(config: configOptions): HyperActions {
return {
type: CONFIG_LOAD,
config
};
}
export function reloadConfig(config: configOptions): HyperActions {
const now = Date.now();
return {
type: CONFIG_RELOAD,
config,
now
};
}