-
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathtypes.ts
More file actions
27 lines (24 loc) · 714 Bytes
/
types.ts
File metadata and controls
27 lines (24 loc) · 714 Bytes
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
/**
* The type of the focused element in vscode at the moment of the command being executed.
*/
export type FocusedElementType = "textEditor" | "terminal" | "other";
interface Signal {
getVersion: () => Promise<string | null>;
}
export interface ReturnApi {
/**
* The type of the focused element in vscode at the moment of the command being executed.
*/
getFocusedElementType: () => Promise<FocusedElementType | undefined>;
/**
* These signals can be used as a form of IPC to indicate that an event has
* occurred.
*/
signals: {
/**
* This signal is emitted by the voice engine to indicate that a phrase has
* just begun execution.
*/
prePhrase: Signal;
};
}