update editor interface (#293)

This commit is contained in:
Taly 2018-07-17 22:09:59 +03:00 committed by GitHub
commit cbb4746cc9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View file

@ -1,6 +1,7 @@
import {IBlockTool} from './block-tool';
import {IBlockToolConfig} from './block-tool';
import ISanitizerConfig from './sanitizer-config';
import IInputOutputData from './input-output-data';
/**
* Editor Instance config
@ -15,7 +16,7 @@ export default interface IEditorConfig {
/**
* Blocks list in JSON-format
*/
data: IBlockToolConfig[];
data: IInputOutputData;
/**
* Map of used Tools

View file

@ -1,3 +1,5 @@
import {IBlockToolData} from './block-tool';
/**
* Interface represents input CodeX Editor data
* that passed with initial configuration object as 'data' key
@ -7,7 +9,7 @@ export default interface IInputOutputData {
/**
* Saved Blocks
*/
readonly items: object[];
readonly items: IBlockToolData[];
/**
* Article id. Optional