editorOptions.d.ts 807 B

123456789101112131415
  1. import * as AceBuilds from "ace-builds";
  2. declare type EditorOption = "minLines" | "maxLines" | "readOnly" | "highlightActiveLine" | "tabSize" | "enableBasicAutocompletion" | "enableLiveAutocompletion" | "enableSnippets";
  3. declare const editorOptions: EditorOption[];
  4. declare type EditorEvent = "onChange" | "onFocus" | "onInput" | "onBlur" | "onCopy" | "onPaste" | "onSelectionChange" | "onCursorChange" | "onScroll" | "handleOptions" | "updateRef";
  5. declare const editorEvents: EditorEvent[];
  6. declare global {
  7. namespace NodeJS {
  8. interface Global {
  9. window: any;
  10. }
  11. }
  12. }
  13. declare const getAceInstance: () => typeof AceBuilds;
  14. declare const debounce: (fn: (...args: any[]) => void, delay: number) => () => void;
  15. export { editorOptions, editorEvents, debounce, getAceInstance };