forked from xdan/jodit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcustom.d.ts
38 lines (33 loc) · 898 Bytes
/
custom.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
36
37
38
declare module "*.svg" {
const content: any;
export = content;
}
type Bound = {top: number, left: number, width: number, height: number};
type Point = {x: number, y: number};
type SelectionRange = {
startContainer: Node|null,
startOffset: number|null,
endContainer: Node|null,
endOffset: number|null,
};
type RGB = {r: number, g: number, b: number};
type Permissions = {
allowFiles: boolean,
allowFileMove: boolean,
allowFileUpload: boolean,
allowFileUploadRemote: boolean,
allowFileRemove: boolean,
allowFileRename: boolean,
allowFolders: boolean,
allowFolderCreate: boolean,
allowFolderMove: boolean,
allowFolderRemove: boolean,
allowFolderRename: boolean,
allowImageResize: boolean,
allowImageCrop: boolean,
[key: string]: boolean;
};
type CommandType = {
exec: Function,
hotkeys?: string | string[]
}