hyper/lib/actions/config.ts
Labhansh Agrawal 36ff6e9b95 sort imports
2023-07-26 00:16:14 +05:30

19 lines
464 B
TypeScript

import type {configOptions} from '../../typings/config';
import {CONFIG_LOAD, CONFIG_RELOAD} from '../../typings/constants/config';
import type {HyperActions} from '../../typings/hyper';
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
};
}