UNPKG

@aegenet/au2-code-mirror

Version:

DRAFT - Aurelia 2 - CodeMirror (6) plugin

21 lines (18 loc) 546 B
import { ICustomElementViewModel } from 'aurelia'; /** * CodeMirror */ declare class CodeMirror implements ICustomElementViewModel { private readonly _element; private _codeMirror?; codeArea: HTMLDivElement; /** Code */ code?: string; constructor(_element: HTMLElement); attached(): void | Promise<void>; codeChanged(newValue: string, oldValue: string): void; /** Set the cursor at the end of existing content */ private _setCursorAtEnd; detaching(): void | Promise<void>; } export { CodeMirror };