import { Action } from 'redux' import { Config } from 'src/types' export interface SetConfigAction extends Action { type: 'CONFIG_SET' payload: Config } export type ConfigActions = SetConfigAction export const setConfig = (config: Config): SetConfigAction => ({ type: 'CONFIG_SET', payload: config })