react-ace
Version:
A react component for Ace Editor
16 lines (15 loc) • 791 B
TypeScript
import * as AceBuilds from "ace-builds";
type EditorOption = "minLines" | "maxLines" | "readOnly" | "highlightActiveLine" | "tabSize" | "enableBasicAutocompletion" | "enableLiveAutocompletion" | "enableSnippets";
declare const editorOptions: EditorOption[];
type EditorEvent = "onChange" | "onFocus" | "onInput" | "onBlur" | "onCopy" | "onPaste" | "onSelectionChange" | "onCursorChange" | "onScroll" | "handleOptions" | "updateRef";
declare const editorEvents: EditorEvent[];
declare global {
namespace NodeJS {
interface Global {
window: any;
}
}
}
declare const getAceInstance: () => typeof AceBuilds;
declare const debounce: (fn: (...args: any[]) => void, delay: number) => () => void;
export { editorOptions, editorEvents, debounce, getAceInstance };