mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-13 04:28:41 -09:00
18 lines
360 B
TypeScript
18 lines
360 B
TypeScript
import {CONFIG_LOAD, CONFIG_RELOAD} from '../constants/config';
|
|
import {HyperActions} from '../hyper';
|
|
|
|
export function loadConfig(config: any): HyperActions {
|
|
return {
|
|
type: CONFIG_LOAD,
|
|
config
|
|
};
|
|
}
|
|
|
|
export function reloadConfig(config: any): HyperActions {
|
|
const now = Date.now();
|
|
return {
|
|
type: CONFIG_RELOAD,
|
|
config,
|
|
now
|
|
};
|
|
}
|