kui-shell
Version:
This is the monorepo for Kui, the hybrid command-line/GUI electron-based Kubernetes tool
23 lines (22 loc) • 718 B
TypeScript
/// <reference types="node" />
import { EventEmitter } from 'events';
import { editor as MonacoEditor } from 'monaco-editor';
import { Commands, UI } from '@kui-shell/core';
import { Entity as EditorEntity } from './fetchers';
export { EditorEntity };
export interface Editor extends MonacoEditor.ICodeEditor {
updateText: (entity: EditorEntity) => void;
}
export interface EditorState {
getEntity: () => EditorEntity;
editor: Editor;
eventBus: EventEmitter;
toolbarText: UI.ToolbarText;
}
export interface EditorResponse extends EditorState {
content: HTMLElement;
}
export interface CommandResponse extends Commands.CustomResponse {
content: HTMLElement;
}
export default EditorResponse;