forked from vslinko/obsidian-zoom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest-globals.d.ts
32 lines (28 loc) · 860 Bytes
/
test-globals.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
declare namespace jest {
interface Matchers<R> {
toEqualEditorState(s: string): Promise<R>;
toEqualEditorState(s: string[]): Promise<R>;
}
}
interface IFold {
from: number;
to: number;
}
interface ISelection {
anchor: number;
head: number;
}
interface IState {
hidden: number[];
folds: IFold[];
selections: ISelection[];
value: string;
}
declare function applyState(state: string): Promise<void>;
declare function applyState(state: string[]): Promise<void>;
declare function parseState(state: string): Promise<IState>;
declare function parseState(state: string[]): Promise<IState>;
declare function simulateKeydown(keys: string): Promise<void>;
declare function replaceSelection(char: string): Promise<void>;
declare function executeCommandById(keys: string): Promise<void>;
declare function getCurrentState(): Promise<IState>;