File tree 2 files changed +7
-2
lines changed
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @e2b/desktop " : minor
3
+ ---
4
+
5
+ fixed types
Original file line number Diff line number Diff line change @@ -303,7 +303,7 @@ export class Sandbox extends SandboxBase {
303
303
* @returns A object with the x and y coordinates
304
304
* @throws Error if cursor position cannot be determined
305
305
*/
306
- async getCursorPosition ( ) : Promise < CursorPosition | null > {
306
+ async getCursorPosition ( ) : Promise < CursorPosition > {
307
307
const result = await this . commands . run (
308
308
"xdotool getmouselocation" , { envs : { DISPLAY : this . display } }
309
309
) ;
@@ -328,7 +328,7 @@ export class Sandbox extends SandboxBase {
328
328
* @returns An {@link ScreenSize} object
329
329
* @throws Error if screen size cannot be determined
330
330
*/
331
- async getScreenSize ( ) : Promise < ScreenSize | null > {
331
+ async getScreenSize ( ) : Promise < ScreenSize > {
332
332
const result = await this . commands . run (
333
333
"xrandr" , { envs : { DISPLAY : this . display } }
334
334
) ;
You can’t perform that action at this time.
0 commit comments