Make Keymap class
This commit is contained in:
parent
b496cea582
commit
410ffbb037
15 changed files with 223 additions and 129 deletions
|
@ -1,18 +1,18 @@
|
|||
import * as actions from '../actions';
|
||||
import {
|
||||
JSONSettings, FormSettings, SettingSource,
|
||||
JSONTextSettings, FormSettings, SettingSource,
|
||||
} from '../../shared/SettingData';
|
||||
|
||||
export interface State {
|
||||
source: SettingSource;
|
||||
json?: JSONSettings;
|
||||
json?: JSONTextSettings;
|
||||
form?: FormSettings;
|
||||
error: string;
|
||||
}
|
||||
|
||||
const defaultState: State = {
|
||||
source: SettingSource.JSON,
|
||||
json: JSONSettings.valueOf(''),
|
||||
json: JSONTextSettings.fromText(''),
|
||||
error: '',
|
||||
};
|
||||
|
||||
|
|
Reference in a new issue