A fork of https://github.com/ueokande/vim-vixen
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
964 B
36 lines
964 B
import { |
|
JSONTextSettings, FormSettings, SettingSource, |
|
} from '../../shared/SettingData'; |
|
|
|
// Settings |
|
export const SETTING_SET_SETTINGS = 'setting.set.settings'; |
|
export const SETTING_SHOW_ERROR = 'setting.show.error'; |
|
export const SETTING_SWITCH_TO_FORM = 'setting.switch.to.form'; |
|
export const SETTING_SWITCH_TO_JSON = 'setting.switch.to.json'; |
|
|
|
interface SettingSetSettingsAcion { |
|
type: typeof SETTING_SET_SETTINGS; |
|
source: SettingSource; |
|
json?: JSONTextSettings; |
|
form?: FormSettings; |
|
} |
|
|
|
interface SettingShowErrorAction { |
|
type: typeof SETTING_SHOW_ERROR; |
|
error: string; |
|
json: JSONTextSettings; |
|
} |
|
|
|
interface SettingSwitchToFormAction { |
|
type: typeof SETTING_SWITCH_TO_FORM; |
|
form: FormSettings, |
|
} |
|
|
|
interface SettingSwitchToJsonAction { |
|
type: typeof SETTING_SWITCH_TO_JSON; |
|
json: JSONTextSettings, |
|
} |
|
|
|
export type SettingAction = |
|
SettingSetSettingsAcion | SettingShowErrorAction | |
|
SettingSwitchToFormAction | SettingSwitchToJsonAction;
|
|
|