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