import {paramsInterfaceValidKey} from '../../../script/index' export interface AceEditorInterface { model: string height: string disabled?: Function sqlFormatter?: boolean deepData?: number lang?: string placeholder?: Function } export interface AceOptionsInterface { useSoftTabs: boolean, tabSize: number, showLineNumbers: boolean, showPrintMargin: boolean, fontSize: number, enableLiveAutocompletion: boolean, wrap: boolean } export class AceEditorConfig implements AceEditorInterface { model = 'sql' height = '200px' deepData: number | undefined sqlFormatter = true disabled = (): boolean => false lang = 'sql' constructor (params: AceEditorInterface) { paramsInterfaceValidKey(this, params) } }