/
githubmirror
/
hyper
Обзор
Документация
Войти
/
githubmirror
/
hyper
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
canary
lib/actions/config.ts
19 строк
464 B
Labhansh Agrawal
sort imports
25 июл 2023, 21:46
25 июл 2023, 21:46
36ff6e9
Код
Авторство
О чём код?
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 }; }