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 {
24462446 * @example
24472447 * ```typescript
24482448 * import { currentMonitor } from '@tauri-apps/api/window';
2449- * const monitor = currentMonitor();
2449+ * const monitor = await currentMonitor();
24502450 * ```
24512451 *
24522452 * @since 1.0.0
@@ -2463,7 +2463,7 @@ async function currentMonitor(): Promise<Monitor | null> {
24632463 * @example
24642464 * ```typescript
24652465 * import { primaryMonitor } from '@tauri-apps/api/window';
2466- * const monitor = primaryMonitor();
2466+ * const monitor = await primaryMonitor();
24672467 * ```
24682468 *
24692469 * @since 1.0.0
@@ -2479,7 +2479,7 @@ async function primaryMonitor(): Promise<Monitor | null> {
24792479 * @example
24802480 * ```typescript
24812481 * import { monitorFromPoint } from '@tauri-apps/api/window';
2482- * const monitor = monitorFromPoint();
2482+ * const monitor = await monitorFromPoint(100.0, 200.0 );
24832483 * ```
24842484 *
24852485 * @since 1.0.0
@@ -2496,7 +2496,7 @@ async function monitorFromPoint(x: number, y: number): Promise<Monitor | null> {
24962496 * @example
24972497 * ```typescript
24982498 * import { availableMonitors } from '@tauri-apps/api/window';
2499- * const monitors = availableMonitors();
2499+ * const monitors = await availableMonitors();
25002500 * ```
25012501 *
25022502 * @since 1.0.0
You can’t perform that action at this time.
0 commit comments