mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-12 20:18:41 -09:00
19 lines
453 B
TypeScript
19 lines
453 B
TypeScript
import {CONFIG_LOAD, CONFIG_RELOAD} from '../constants/config';
|
|
import type {HyperActions} from '../../typings/hyper';
|
|
import type {configOptions} from '../../typings/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
|
|
};
|
|
}
|