teste.ts
· 604 B · TypeScript
Raw
import { App, Editor, Menu } from 'obsidian'
/*
Cursor Coordinate
*/
export interface Coords
{
top: number
left: number
right: number
bottom: number
}
/*
Export Types
*/
export type ContextMenu = Menu & { DOM: HTMLElement }
export type GistrAPI = App & { Commands: { RunCommandByID: Function } }
export type GistrEditor = Editor &
{
cm: CodeMirror.Editor & { coordsPos: Function }
coordsCur: Function
coordsPos: Function
hasFocus: Function
getSelection: Function
}
1 | import { App, Editor, Menu } from 'obsidian' |
2 | |
3 | /* |
4 | Cursor Coordinate |
5 | */ |
6 | |
7 | export interface Coords |
8 | { |
9 | top: number |
10 | left: number |
11 | right: number |
12 | bottom: number |
13 | } |
14 | |
15 | /* |
16 | Export Types |
17 | */ |
18 | |
19 | export type ContextMenu = Menu & { DOM: HTMLElement } |
20 | export type GistrAPI = App & { Commands: { RunCommandByID: Function } } |
21 | export type GistrEditor = Editor & |
22 | { |
23 | cm: CodeMirror.Editor & { coordsPos: Function } |
24 | coordsCur: Function |
25 | coordsPos: Function |
26 | hasFocus: Function |
27 | getSelection: Function |
28 | } |
29 |