File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2446,7 +2446,7 @@ function mapMonitor(m: Monitor | null): Monitor | null {
2446
2446
* @example
2447
2447
* ```typescript
2448
2448
* import { currentMonitor } from '@tauri-apps/api/window';
2449
- * const monitor = currentMonitor();
2449
+ * const monitor = await currentMonitor();
2450
2450
* ```
2451
2451
*
2452
2452
* @since 1.0.0
@@ -2463,7 +2463,7 @@ async function currentMonitor(): Promise<Monitor | null> {
2463
2463
* @example
2464
2464
* ```typescript
2465
2465
* import { primaryMonitor } from '@tauri-apps/api/window';
2466
- * const monitor = primaryMonitor();
2466
+ * const monitor = await primaryMonitor();
2467
2467
* ```
2468
2468
*
2469
2469
* @since 1.0.0
@@ -2479,7 +2479,7 @@ async function primaryMonitor(): Promise<Monitor | null> {
2479
2479
* @example
2480
2480
* ```typescript
2481
2481
* import { monitorFromPoint } from '@tauri-apps/api/window';
2482
- * const monitor = monitorFromPoint();
2482
+ * const monitor = await monitorFromPoint(100.0, 200.0 );
2483
2483
* ```
2484
2484
*
2485
2485
* @since 1.0.0
@@ -2496,7 +2496,7 @@ async function monitorFromPoint(x: number, y: number): Promise<Monitor | null> {
2496
2496
* @example
2497
2497
* ```typescript
2498
2498
* import { availableMonitors } from '@tauri-apps/api/window';
2499
- * const monitors = availableMonitors();
2499
+ * const monitors = await availableMonitors();
2500
2500
* ```
2501
2501
*
2502
2502
* @since 1.0.0
You can’t perform that action at this time.
0 commit comments