-
Notifications
You must be signed in to change notification settings - Fork 25
/
types.d.ts
35 lines (31 loc) · 840 Bytes
/
types.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import { ComponentPublicInstance } from 'vue';
import type { Ace } from 'ace-builds';
export interface VAceEditorPrivate {
_editor: Ace.Editor;
_contentBackup: string;
_isSettingContent: boolean;
_ro: ResizeObserver;
}
export interface VAceEditorProps {
readonly value: string;
readonly lang: string;
readonly theme: string;
readonly options: Partial<Ace.EditorOptions>;
readonly placeholder: string;
readonly readonly: boolean;
readonly wrap: boolean;
readonly printMargin: boolean | number;
readonly minLines: number;
readonly maxLines: number;
}
export interface VAceEditorMethods {
focus(): void;
blur(): void;
selectAll(): void;
getAceInstance(): Ace.Editor;
}
export interface VAceEditorInstance extends
ComponentPublicInstance,
VAceEditorPrivate,
VAceEditorProps,
VAceEditorMethods {}