enable type declarations

This commit is contained in:
Jonas Kruckenberg
2022-12-18 17:05:10 +01:00
parent 093001d876
commit 063a3cfd54
12 changed files with 579 additions and 1 deletions
+27
View File
@@ -0,0 +1,27 @@
/**
* Well known window positions.
*/
export declare enum Position {
TopLeft = 0,
TopRight = 1,
BottomLeft = 2,
BottomRight = 3,
TopCenter = 4,
BottomCenter = 5,
LeftCenter = 6,
RightCenter = 7,
Center = 8,
TrayLeft = 9,
TrayBottomLeft = 10,
TrayRight = 11,
TrayBottomRight = 12,
TrayCenter = 13,
TrayBottomCenter = 14
}
/**
* Moves the `Window` to the given {@link Position} using `WindowExt.move_window()`
* All positions are relative to the **current** screen.
*
* @param to The {@link Position} to move to.
*/
export declare function moveWindow(to: Position): Promise<void>;