hyper/lib/constants/config.ts

19 lines
422 B
TypeScript
Raw Normal View History

2023-06-26 01:29:50 -08:00
import type {configOptions} from '../config';
2020-04-27 05:32:08 -08:00
2016-07-13 12:44:24 -08:00
export const CONFIG_LOAD = 'CONFIG_LOAD';
export const CONFIG_RELOAD = 'CONFIG_RELOAD';
2019-12-27 06:33:21 -09:00
export interface ConfigLoadAction {
type: typeof CONFIG_LOAD;
2020-04-27 05:32:08 -08:00
config: configOptions;
2019-12-27 06:33:21 -09:00
now?: number;
}
export interface ConfigReloadAction {
type: typeof CONFIG_RELOAD;
2020-04-27 05:32:08 -08:00
config: configOptions;
2019-12-27 06:33:21 -09:00
now: number;
}
export type ConfigActions = ConfigLoadAction | ConfigReloadAction;