electron 36.1.0 → 36.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/checksums.json +75 -75
  2. package/electron.d.ts +191 -182
  3. package/package.json +1 -1
package/electron.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Type definitions for Electron 36.1.0
1
+ // Type definitions for Electron 36.2.1
2
2
  // Project: http://electronjs.org/
3
3
  // Definitions by: The Electron Team <https://github.com/electron/electron>
4
4
  // Definitions: https://github.com/electron/typescript-definitions
@@ -165,11 +165,11 @@ declare namespace Electron {
165
165
  * `event.preventDefault()` will prevent the default behavior, which is terminating
166
166
  * the application.
167
167
  *
168
- * **Note:** If application quit was initiated by `autoUpdater.quitAndInstall()`,
168
+ * > [!NOTE] If application quit was initiated by `autoUpdater.quitAndInstall()`,
169
169
  * then `before-quit` is emitted _after_ emitting `close` event on all windows and
170
170
  * closing them.
171
171
  *
172
- * **Note:** On Windows, this event will not be emitted if the app is closed due to
172
+ * > [!NOTE] On Windows, this event will not be emitted if the app is closed due to
173
173
  * a shutdown/restart of the system or a user logout.
174
174
  */
175
175
  on(event: 'before-quit', listener: (event: Event) => void): this;
@@ -612,7 +612,7 @@ declare namespace Electron {
612
612
  /**
613
613
  * Emitted when the application is quitting.
614
614
  *
615
- * **Note:** On Windows, this event will not be emitted if the app is closed due to
615
+ * > [!NOTE] On Windows, this event will not be emitted if the app is closed due to
616
616
  * a shutdown/restart of the system or a user logout.
617
617
  */
618
618
  on(event: 'quit', listener: (event: Event,
@@ -633,7 +633,7 @@ declare namespace Electron {
633
633
  * this event has already fired and `app.whenReady()` to get a Promise that is
634
634
  * fulfilled when Electron is initialized.
635
635
  *
636
- * **Note**: The `ready` event is only fired after the main process has finished
636
+ * > [!NOTE] The `ready` event is only fired after the main process has finished
637
637
  * running the first tick of the event loop. If an Electron API needs to be called
638
638
  * before the `ready` event, ensure that it is called synchronously in the
639
639
  * top-level context of the main process.
@@ -690,18 +690,18 @@ declare namespace Electron {
690
690
  * `workingDirectory` is its current working directory. Usually applications
691
691
  * respond to this by making their primary window focused and non-minimized.
692
692
  *
693
- * **Note:** `argv` will not be exactly the same list of arguments as those passed
693
+ * > [!NOTE] `argv` will not be exactly the same list of arguments as those passed
694
694
  * to the second instance. The order might change and additional arguments might be
695
695
  * appended. If you need to maintain the exact same arguments, it's advised to use
696
696
  * `additionalData` instead.
697
697
  *
698
- * **Note:** If the second instance is started by a different user than the first,
698
+ * > [!NOTE] If the second instance is started by a different user than the first,
699
699
  * the `argv` array will not include the arguments.
700
700
  *
701
701
  * This event is guaranteed to be emitted after the `ready` event of `app` gets
702
702
  * emitted.
703
703
  *
704
- * **Note:** Extra command line arguments might be added by Chromium, such as
704
+ * > [!NOTE] Extra command line arguments might be added by Chromium, such as
705
705
  * `--original-process-start-time`.
706
706
  */
707
707
  on(event: 'second-instance', listener: (event: Event,
@@ -954,7 +954,7 @@ declare namespace Electron {
954
954
  * See the description of the `window-all-closed` event for the differences between
955
955
  * the `will-quit` and `window-all-closed` events.
956
956
  *
957
- * **Note:** On Windows, this event will not be emitted if the app is closed due to
957
+ * > [!NOTE] On Windows, this event will not be emitted if the app is closed due to
958
958
  * a shutdown/restart of the system or a user logout.
959
959
  */
960
960
  on(event: 'will-quit', listener: (event: Event) => void): this;
@@ -1110,7 +1110,7 @@ declare namespace Electron {
1110
1110
  /**
1111
1111
  * The Graphics Feature Status from `chrome://gpu/`.
1112
1112
  *
1113
- * **Note:** This information is only usable after the `gpu-info-update` event is
1113
+ * > [!NOTE] This information is only usable after the `gpu-info-update` event is
1114
1114
  * emitted.
1115
1115
  */
1116
1116
  getGPUFeatureStatus(): GPUFeatureStatus;
@@ -1146,12 +1146,12 @@ declare namespace Electron {
1146
1146
  * To set the locale, you'll want to use a command line switch at app startup,
1147
1147
  * which may be found here.
1148
1148
  *
1149
- * **Note:** When distributing your packaged app, you have to also ship the
1149
+ * > [!NOTE] When distributing your packaged app, you have to also ship the
1150
1150
  * `locales` folder.
1151
1151
  *
1152
- * **Note:** This API must be called after the `ready` event is emitted.
1152
+ * > [!NOTE] This API must be called after the `ready` event is emitted.
1153
1153
  *
1154
- * **Note:** To see example return values of this API compared to other locale and
1154
+ * > [!NOTE] To see example return values of this API compared to other locale and
1155
1155
  * language APIs, see `app.getPreferredSystemLanguages()`.
1156
1156
  */
1157
1157
  getLocale(): string;
@@ -1159,7 +1159,7 @@ declare namespace Electron {
1159
1159
  * User operating system's locale two-letter ISO 3166 country code. The value is
1160
1160
  * taken from native OS APIs.
1161
1161
  *
1162
- * **Note:** When unable to detect locale country code, it returns empty string.
1162
+ * > [!NOTE] When unable to detect locale country code, it returns empty string.
1163
1163
  */
1164
1164
  getLocaleCountryCode(): string;
1165
1165
  /**
@@ -1272,9 +1272,9 @@ declare namespace Electron {
1272
1272
  * rendering dates and times in a calendar app, especially when the developer wants
1273
1273
  * the format to be consistent with the OS.
1274
1274
  *
1275
- * **Note:** This API must be called after the `ready` event is emitted.
1275
+ * > [!NOTE] This API must be called after the `ready` event is emitted.
1276
1276
  *
1277
- * **Note:** To see example return values of this API compared to other locale and
1277
+ * > [!NOTE] To see example return values of this API compared to other locale and
1278
1278
  * language APIs, see `app.getPreferredSystemLanguages()`.
1279
1279
  */
1280
1280
  getSystemLocale(): string;
@@ -1326,7 +1326,7 @@ declare namespace Electron {
1326
1326
  * Whether the current executable is the default handler for a protocol (aka URI
1327
1327
  * scheme).
1328
1328
  *
1329
- * **Note:** On macOS, you can use this method to check if the app has been
1329
+ * > [!NOTE] On macOS, you can use this method to check if the app has been
1330
1330
  * registered as the default protocol handler for a protocol. You can also verify
1331
1331
  * this by checking `~/Library/Preferences/com.apple.LaunchServices.plist` on the
1332
1332
  * macOS machine. Please refer to Apple's documentation for details.
@@ -1499,7 +1499,7 @@ declare namespace Electron {
1499
1499
  *
1500
1500
  * This API must be called after the `ready` event is emitted.
1501
1501
  *
1502
- * **Note:** Rendering accessibility tree can significantly affect the performance
1502
+ * > [!NOTE] Rendering accessibility tree can significantly affect the performance
1503
1503
  * of your app. It should not be enabled by default.
1504
1504
  *
1505
1505
  * @platform darwin,win32
@@ -1545,13 +1545,13 @@ declare namespace Electron {
1545
1545
  * current executable. The whole link, including protocol, will be passed to your
1546
1546
  * application as a parameter.
1547
1547
  *
1548
- * **Note:** On macOS, you can only register protocols that have been added to your
1548
+ * > [!NOTE] On macOS, you can only register protocols that have been added to your
1549
1549
  * app's `info.plist`, which cannot be modified at runtime. However, you can change
1550
1550
  * the file during build time via Electron Forge, Electron Packager, or by editing
1551
1551
  * `info.plist` with a text editor. Please refer to Apple's documentation for
1552
1552
  * details.
1553
1553
  *
1554
- * **Note:** In a Windows Store environment (when packaged as an `appx`) this API
1554
+ * > [!NOTE] In a Windows Store environment (when packaged as an `appx`) this API
1555
1555
  * will return `true` for all calls but the registry key it sets won't be
1556
1556
  * accessible by other applications. In order to register your Windows Store
1557
1557
  * application as a default protocol handler you must declare the protocol in your
@@ -1569,10 +1569,10 @@ declare namespace Electron {
1569
1569
  *
1570
1570
  * On macOS, it shows on the dock icon. On Linux, it only works for Unity launcher.
1571
1571
  *
1572
- * **Note:** Unity launcher requires a `.desktop` file to work. For more
1572
+ * > [!NOTE] Unity launcher requires a `.desktop` file to work. For more
1573
1573
  * information, please read the Unity integration documentation.
1574
1574
  *
1575
- * **Note:** On macOS, you need to ensure that your application has the permission
1575
+ * > [!NOTE] On macOS, you need to ensure that your application has the permission
1576
1576
  * to display notifications for this method to work.
1577
1577
  *
1578
1578
  * @platform linux,darwin
@@ -1601,19 +1601,19 @@ declare namespace Electron {
1601
1601
  * If `categories` is `null` the previously set custom Jump List (if any) will be
1602
1602
  * replaced by the standard Jump List for the app (managed by Windows).
1603
1603
  *
1604
- * **Note:** If a `JumpListCategory` object has neither the `type` nor the `name`
1604
+ * > [!NOTE] If a `JumpListCategory` object has neither the `type` nor the `name`
1605
1605
  * property set then its `type` is assumed to be `tasks`. If the `name` property is
1606
1606
  * set but the `type` property is omitted then the `type` is assumed to be
1607
1607
  * `custom`.
1608
1608
  *
1609
- * **Note:** Users can remove items from custom categories, and Windows will not
1609
+ * > [!NOTE] Users can remove items from custom categories, and Windows will not
1610
1610
  * allow a removed item to be added back into a custom category until **after** the
1611
1611
  * next successful call to `app.setJumpList(categories)`. Any attempt to re-add a
1612
1612
  * removed item to a custom category earlier than that will result in the entire
1613
1613
  * custom category being omitted from the Jump List. The list of removed items can
1614
1614
  * be obtained using `app.getJumpListSettings()`.
1615
1615
  *
1616
- * **Note:** The maximum length of a Jump List item's `description` property is 260
1616
+ * > [!NOTE] The maximum length of a Jump List item's `description` property is 260
1617
1617
  * characters. Beyond this limit, the item will not be added to the Jump List, nor
1618
1618
  * will it be displayed.
1619
1619
  *
@@ -1639,7 +1639,7 @@ declare namespace Electron {
1639
1639
  /**
1640
1640
  * Overrides the current application's name.
1641
1641
  *
1642
- * **Note:** This function overrides the name used internally by Electron; it does
1642
+ * > [!NOTE] This function overrides the name used internally by Electron; it does
1643
1643
  * not affect the name that the OS uses.
1644
1644
  */
1645
1645
  setName(name: string): void;
@@ -1655,7 +1655,16 @@ declare namespace Electron {
1655
1655
  * `sessionData` path before the `ready` event of the `app` module is emitted.
1656
1656
  */
1657
1657
  setPath(name: string, path: string): void;
1658
- setProxy(config: ProxyConfig): void;
1658
+ /**
1659
+ * Resolves when the proxy setting process is complete.
1660
+ *
1661
+ * Sets the proxy settings for networks requests made without an associated
1662
+ * Session. Currently this will affect requests made with Net in the utility
1663
+ * process and internal requests made by the runtime (ex: geolocation queries).
1664
+ *
1665
+ * This method can only be called after app is ready.
1666
+ */
1667
+ setProxy(config: ProxyConfig): Promise<void>;
1659
1668
  /**
1660
1669
  * Set the `Secure Keyboard Entry` is enabled in your application.
1661
1670
  *
@@ -1664,7 +1673,7 @@ declare namespace Electron {
1664
1673
  *
1665
1674
  * See Apple's documentation for more details.
1666
1675
  *
1667
- * **Note:** Enable `Secure Keyboard Entry` only when it is needed and disable it
1676
+ * > [!NOTE] Enable `Secure Keyboard Entry` only when it is needed and disable it
1668
1677
  * when it is no longer needed.
1669
1678
  *
1670
1679
  * @platform darwin
@@ -1684,7 +1693,7 @@ declare namespace Electron {
1684
1693
  *
1685
1694
  * Whether the call succeeded.
1686
1695
  *
1687
- * **Note:** If you'd like to customize the Jump List even more use
1696
+ * > [!NOTE] If you'd like to customize the Jump List even more use
1688
1697
  * `app.setJumpList(categories)` instead.
1689
1698
  *
1690
1699
  * @platform win32
@@ -1746,7 +1755,7 @@ declare namespace Electron {
1746
1755
  *
1747
1756
  * This API must be called after the `ready` event is emitted.
1748
1757
  *
1749
- * **Note:** Rendering accessibility tree can significantly affect the performance
1758
+ * > [!NOTE] Rendering accessibility tree can significantly affect the performance
1750
1759
  * of your app. It should not be enabled by default.
1751
1760
  *
1752
1761
  * @platform darwin,win32
@@ -1764,10 +1773,10 @@ declare namespace Electron {
1764
1773
  * On macOS, setting this with any nonzero integer shows on the dock icon. On
1765
1774
  * Linux, this property only works for Unity launcher.
1766
1775
  *
1767
- * **Note:** Unity launcher requires a `.desktop` file to work. For more
1776
+ * > [!NOTE] Unity launcher requires a `.desktop` file to work. For more
1768
1777
  * information, please read the Unity integration documentation.
1769
1778
  *
1770
- * **Note:** On macOS, you need to ensure that your application has the permission
1779
+ * > [!NOTE] On macOS, you need to ensure that your application has the permission
1771
1780
  * to display notifications for this property to take effect.
1772
1781
  *
1773
1782
  * @platform linux,darwin
@@ -1875,7 +1884,7 @@ declare namespace Electron {
1875
1884
  *
1876
1885
  * On Windows only `releaseName` is available.
1877
1886
  *
1878
- * **Note:** It is not strictly necessary to handle this event. A successfully
1887
+ * > [!NOTE] It is not strictly necessary to handle this event. A successfully
1879
1888
  * downloaded update will still be applied the next time the application starts.
1880
1889
  */
1881
1890
  on(event: 'update-downloaded', listener: (event: Event,
@@ -1915,7 +1924,7 @@ declare namespace Electron {
1915
1924
  * Asks the server whether there is an update. You must call `setFeedURL` before
1916
1925
  * using this API.
1917
1926
  *
1918
- * **Note:** If an update is available it will be downloaded automatically. Calling
1927
+ * > [!NOTE] If an update is available it will be downloaded automatically. Calling
1919
1928
  * `autoUpdater.checkForUpdates()` twice will download the update two times.
1920
1929
  */
1921
1930
  checkForUpdates(): void;
@@ -1931,7 +1940,7 @@ declare namespace Electron {
1931
1940
  * windows first, and automatically call `app.quit()` after all windows have been
1932
1941
  * closed.
1933
1942
  *
1934
- * **Note:** It is not strictly necessary to call this function to apply an update,
1943
+ * > [!NOTE] It is not strictly necessary to call this function to apply an update,
1935
1944
  * as a successfully downloaded update will always be applied the next time the
1936
1945
  * application starts.
1937
1946
  */
@@ -2015,11 +2024,11 @@ declare namespace Electron {
2015
2024
  * In Electron, returning any value other than `undefined` would cancel the close.
2016
2025
  * For example:
2017
2026
  *
2018
- * _**Note**: There is a subtle difference between the behaviors of
2027
+ * > [!NOTE] There is a subtle difference between the behaviors of
2019
2028
  * `window.onbeforeunload = handler` and `window.addEventListener('beforeunload',
2020
2029
  * handler)`. It is recommended to always set the `event.returnValue` explicitly,
2021
2030
  * instead of only returning a value, as the former works more consistently within
2022
- * Electron._
2031
+ * Electron.
2023
2032
  */
2024
2033
  on(event: 'close', listener: (event: Event) => void): this;
2025
2034
  off(event: 'close', listener: (event: Event) => void): this;
@@ -2094,7 +2103,7 @@ declare namespace Electron {
2094
2103
  /**
2095
2104
  * Emitted once when the window is moved to a new position.
2096
2105
  *
2097
- * **Note**: On macOS this event is an alias of `move`.
2106
+ * > [!NOTE] On macOS, this event is an alias of `move`.
2098
2107
  *
2099
2108
  * @platform darwin,win32
2100
2109
  */
@@ -2571,14 +2580,14 @@ declare namespace Electron {
2571
2580
  *
2572
2581
  * See Setting `backgroundColor`.
2573
2582
  *
2574
- * **Note:** The alpha value is _not_ returned alongside the red, green, and blue
2583
+ * > [!NOTE] The alpha value is _not_ returned alongside the red, green, and blue
2575
2584
  * values.
2576
2585
  */
2577
2586
  getBackgroundColor(): string;
2578
2587
  /**
2579
2588
  * The `bounds` of the window as `Object`.
2580
2589
  *
2581
- * **Note:** On macOS, the y-coordinate value returned will be at minimum the Tray
2590
+ * > [!NOTE] On macOS, the y-coordinate value returned will be at minimum the Tray
2582
2591
  * height. For example, calling `win.setBounds({ x: 25, y: 20, width: 800, height:
2583
2592
  * 600 })` with a tray height of 38 means that `win.getBounds()` will return `{ x:
2584
2593
  * 25, y: 38, width: 800, height: 600 }`.
@@ -2628,7 +2637,7 @@ declare namespace Electron {
2628
2637
  /**
2629
2638
  * Contains the window bounds of the normal state
2630
2639
  *
2631
- * **Note:** whatever the current state of the window : maximized, minimized or in
2640
+ * > [!NOTE] Whatever the current state of the window : maximized, minimized or in
2632
2641
  * fullscreen, this function always returns the position and size of the window in
2633
2642
  * normal state. In normal state, getBounds and getNormalBounds returns the same
2634
2643
  * `Rectangle`.
@@ -2660,7 +2669,7 @@ declare namespace Electron {
2660
2669
  /**
2661
2670
  * The title of the native window.
2662
2671
  *
2663
- * **Note:** The title of the web page can be different from the title of the
2672
+ * > [!NOTE] The title of the web page can be different from the title of the
2664
2673
  * native window.
2665
2674
  */
2666
2675
  getTitle(): string;
@@ -2844,7 +2853,7 @@ declare namespace Electron {
2844
2853
  /**
2845
2854
  * Whether the window is visible on all workspaces.
2846
2855
  *
2847
- * **Note:** This API always returns false on Windows.
2856
+ * > [!NOTE] This API always returns false on Windows.
2848
2857
  *
2849
2858
  * @platform darwin,linux
2850
2859
  */
@@ -2928,7 +2937,7 @@ declare namespace Electron {
2928
2937
  /**
2929
2938
  * Sets the properties for the window's taskbar button.
2930
2939
  *
2931
- * **Note:** `relaunchCommand` and `relaunchDisplayName` must always be set
2940
+ * > [!NOTE] `relaunchCommand` and `relaunchDisplayName` must always be set
2932
2941
  * together. If one of those properties is not set, then neither will be used.
2933
2942
  *
2934
2943
  * @platform win32
@@ -3006,7 +3015,7 @@ declare namespace Electron {
3006
3015
  *
3007
3016
  * See the Windows documentation for more details.
3008
3017
  *
3009
- * **Note:** This method is only supported on Windows 11 22H2 and up.
3018
+ * > [!NOTE] This method is only supported on Windows 11 22H2 and up.
3010
3019
  *
3011
3020
  * @platform win32
3012
3021
  */
@@ -3015,7 +3024,7 @@ declare namespace Electron {
3015
3024
  * Resizes and moves the window to the supplied bounds. Any properties that are not
3016
3025
  * supplied will default to their current values.
3017
3026
  *
3018
- * **Note:** On macOS, the y-coordinate value cannot be smaller than the Tray
3027
+ * > [!NOTE] On macOS, the y-coordinate value cannot be smaller than the Tray
3019
3028
  * height. The tray height has changed over time and depends on the operating
3020
3029
  * system, but is between 20-40px. Passing a value lower than the tray height will
3021
3030
  * result in a window that is flush to the tray.
@@ -3073,8 +3082,8 @@ declare namespace Electron {
3073
3082
  /**
3074
3083
  * Sets whether the window should be in fullscreen mode.
3075
3084
  *
3076
- * **Note:** On macOS, fullscreen transitions take place asynchronously. If further
3077
- * actions depend on the fullscreen state, use the 'enter-full-screen' or
3085
+ * > [!NOTE] On macOS, fullscreen transitions take place asynchronously. If further
3086
+ * actions depend on the fullscreen state, use the 'enter-full-screen' or >
3078
3087
  * 'leave-full-screen' events.
3079
3088
  */
3080
3089
  setFullScreen(flag: boolean): void;
@@ -3312,7 +3321,7 @@ declare namespace Electron {
3312
3321
  * `undefined` clears the touch bar. This method only has an effect if the machine
3313
3322
  * has a touch bar.
3314
3323
  *
3315
- * **Note:** The TouchBar API is currently experimental and may change or be
3324
+ * > [!NOTE] The TouchBar API is currently experimental and may change or be
3316
3325
  * removed in future Electron releases.
3317
3326
  *
3318
3327
  * @platform darwin
@@ -3328,7 +3337,7 @@ declare namespace Electron {
3328
3337
  /**
3329
3338
  * Sets whether the window should be visible on all workspaces.
3330
3339
  *
3331
- * **Note:** This API does nothing on Windows.
3340
+ * > [!NOTE] This API does nothing on Windows.
3332
3341
  *
3333
3342
  * @platform darwin,linux
3334
3343
  */
@@ -3466,7 +3475,7 @@ declare namespace Electron {
3466
3475
  /**
3467
3476
  * A `boolean` property that determines whether the menu bar should be visible.
3468
3477
  *
3469
- * **Note:** If the menu bar is auto-hide, users can still bring up the menu bar by
3478
+ * > [!NOTE] If the menu bar is auto-hide, users can still bring up the menu bar by
3470
3479
  * pressing the single `Alt` key.
3471
3480
  *
3472
3481
  * @platform win32,linux
@@ -3526,7 +3535,7 @@ declare namespace Electron {
3526
3535
  /**
3527
3536
  * A `string` property that determines the title of the native window.
3528
3537
  *
3529
- * **Note:** The title of the web page can be different from the title of the
3538
+ * > [!NOTE] The title of the web page can be different from the title of the
3530
3539
  * native window.
3531
3540
  */
3532
3541
  title: string;
@@ -3534,7 +3543,7 @@ declare namespace Electron {
3534
3543
  * A `boolean` property that determines whether the window is visible on all
3535
3544
  * workspaces.
3536
3545
  *
3537
- * **Note:** Always returns false on Windows.
3546
+ * > [!NOTE] Always returns false on Windows.
3538
3547
  *
3539
3548
  * @platform darwin,linux
3540
3549
  */
@@ -3880,7 +3889,7 @@ declare namespace Electron {
3880
3889
  * * Similar to CSS Color Module Level 3 keywords, but case-sensitive.
3881
3890
  * * e.g. `blueviolet` or `red`
3882
3891
  *
3883
- * **Note:** Hex format with alpha takes `AARRGGBB` or `ARGB`, _not_ `RRGGBBAA` or
3892
+ * > [!NOTE] Hex format with alpha takes `AARRGGBB` or `ARGB`, _not_ `RRGGBBAA` or
3884
3893
  * `RGB`.
3885
3894
  *
3886
3895
  * @experimental
@@ -4035,11 +4044,11 @@ declare namespace Electron {
4035
4044
  * In Electron, returning any value other than `undefined` would cancel the close.
4036
4045
  * For example:
4037
4046
  *
4038
- * _**Note**: There is a subtle difference between the behaviors of
4047
+ * > [!NOTE] There is a subtle difference between the behaviors of
4039
4048
  * `window.onbeforeunload = handler` and `window.addEventListener('beforeunload',
4040
4049
  * handler)`. It is recommended to always set the `event.returnValue` explicitly,
4041
4050
  * instead of only returning a value, as the former works more consistently within
4042
- * Electron._
4051
+ * Electron.
4043
4052
  */
4044
4053
  on(event: 'close', listener: (event: Event) => void): this;
4045
4054
  off(event: 'close', listener: (event: Event) => void): this;
@@ -4056,11 +4065,11 @@ declare namespace Electron {
4056
4065
  * In Electron, returning any value other than `undefined` would cancel the close.
4057
4066
  * For example:
4058
4067
  *
4059
- * _**Note**: There is a subtle difference between the behaviors of
4068
+ * > [!NOTE] There is a subtle difference between the behaviors of
4060
4069
  * `window.onbeforeunload = handler` and `window.addEventListener('beforeunload',
4061
4070
  * handler)`. It is recommended to always set the `event.returnValue` explicitly,
4062
4071
  * instead of only returning a value, as the former works more consistently within
4063
- * Electron._
4072
+ * Electron.
4064
4073
  */
4065
4074
  on(event: 'close', listener: (event: Event) => void): this;
4066
4075
  off(event: 'close', listener: (event: Event) => void): this;
@@ -4216,7 +4225,7 @@ declare namespace Electron {
4216
4225
  /**
4217
4226
  * Emitted once when the window is moved to a new position.
4218
4227
  *
4219
- * **Note**: On macOS this event is an alias of `move`.
4228
+ * > [!NOTE] On macOS, this event is an alias of `move`.
4220
4229
  *
4221
4230
  * @platform darwin,win32
4222
4231
  */
@@ -4240,7 +4249,7 @@ declare namespace Electron {
4240
4249
  /**
4241
4250
  * Emitted once when the window is moved to a new position.
4242
4251
  *
4243
- * **Note**: On macOS this event is an alias of `move`.
4252
+ * > [!NOTE] On macOS, this event is an alias of `move`.
4244
4253
  *
4245
4254
  * @platform darwin,win32
4246
4255
  */
@@ -5105,7 +5114,7 @@ declare namespace Electron {
5105
5114
  */
5106
5115
  constructor(options?: BrowserWindowConstructorOptions);
5107
5116
  /**
5108
- * > **Note** The `BrowserView` class is deprecated, and replaced by the new
5117
+ * > [!NOTE] The `BrowserView` class is deprecated, and replaced by the new
5109
5118
  * `WebContentsView` class.
5110
5119
  *
5111
5120
  * The window that owns the given `browserView`. If the given view is not attached
@@ -5134,7 +5143,7 @@ declare namespace Electron {
5134
5143
  /**
5135
5144
  * Replacement API for setBrowserView supporting work with multi browser views.
5136
5145
  *
5137
- * > **Note** The `BrowserView` class is deprecated, and replaced by the new
5146
+ * > [!WARNING] The `BrowserView` class is deprecated, and replaced by the new
5138
5147
  * `WebContentsView` class.
5139
5148
  *
5140
5149
  * @experimental
@@ -5198,14 +5207,14 @@ declare namespace Electron {
5198
5207
  *
5199
5208
  * See Setting `backgroundColor`.
5200
5209
  *
5201
- * **Note:** The alpha value is _not_ returned alongside the red, green, and blue
5210
+ * > [!NOTE] The alpha value is _not_ returned alongside the red, green, and blue
5202
5211
  * values.
5203
5212
  */
5204
5213
  getBackgroundColor(): string;
5205
5214
  /**
5206
5215
  * The `bounds` of the window as `Object`.
5207
5216
  *
5208
- * **Note:** On macOS, the y-coordinate value returned will be at minimum the Tray
5217
+ * > [!NOTE] On macOS, the y-coordinate value returned will be at minimum the Tray
5209
5218
  * height. For example, calling `win.setBounds({ x: 25, y: 20, width: 800, height:
5210
5219
  * 600 })` with a tray height of 38 means that `win.getBounds()` will return `{ x:
5211
5220
  * 25, y: 38, width: 800, height: 600 }`.
@@ -5215,7 +5224,7 @@ declare namespace Electron {
5215
5224
  * The `BrowserView` attached to `win`. Returns `null` if one is not attached.
5216
5225
  * Throws an error if multiple `BrowserView`s are attached.
5217
5226
  *
5218
- * > **Note** The `BrowserView` class is deprecated, and replaced by the new
5227
+ * > [!WARNING] The `BrowserView` class is deprecated, and replaced by the new
5219
5228
  * `WebContentsView` class.
5220
5229
  *
5221
5230
  * @experimental
@@ -5227,7 +5236,7 @@ declare namespace Electron {
5227
5236
  * `addBrowserView` or `setBrowserView`. The top-most BrowserView is the last
5228
5237
  * element of the array.
5229
5238
  *
5230
- * > **Note** The `BrowserView` class is deprecated, and replaced by the new
5239
+ * > [!WARNING] The `BrowserView` class is deprecated, and replaced by the new
5231
5240
  * `WebContentsView` class.
5232
5241
  *
5233
5242
  * @experimental
@@ -5274,9 +5283,9 @@ declare namespace Electron {
5274
5283
  /**
5275
5284
  * Contains the window bounds of the normal state
5276
5285
  *
5277
- * **Note:** whatever the current state of the window : maximized, minimized or in
5278
- * fullscreen, this function always returns the position and size of the window in
5279
- * normal state. In normal state, getBounds and getNormalBounds returns the same
5286
+ * > [!NOTE] Whatever the current state of the window (maximized, minimized or in
5287
+ * fullscreen), this function always returns the position and size of the window in
5288
+ * normal state. In normal state, `getBounds` and `getNormalBounds` return the same
5280
5289
  * `Rectangle`.
5281
5290
  */
5282
5291
  getNormalBounds(): Rectangle;
@@ -5306,7 +5315,7 @@ declare namespace Electron {
5306
5315
  /**
5307
5316
  * The title of the native window.
5308
5317
  *
5309
- * **Note:** The title of the web page can be different from the title of the
5318
+ * > [!NOTE] The title of the web page can be different from the title of the
5310
5319
  * native window.
5311
5320
  */
5312
5321
  getTitle(): string;
@@ -5382,7 +5391,7 @@ declare namespace Electron {
5382
5391
  /**
5383
5392
  * Whether the window is in fullscreen mode.
5384
5393
  *
5385
- * **Note:** On macOS, fullscreen transitions take place asynchronously. When
5394
+ * > [!NOTE] On macOS, fullscreen transitions take place asynchronously. When
5386
5395
  * querying for a BrowserWindow's fullscreen status, you should ensure that either
5387
5396
  * the 'enter-full-screen' or 'leave-full-screen' events have been emitted.
5388
5397
  */
@@ -5494,7 +5503,7 @@ declare namespace Electron {
5494
5503
  /**
5495
5504
  * Whether the window is visible on all workspaces.
5496
5505
  *
5497
- * **Note:** This API always returns false on Windows.
5506
+ * > [!NOTE] This API always returns false on Windows.
5498
5507
  *
5499
5508
  * @platform darwin,linux
5500
5509
  */
@@ -5575,7 +5584,7 @@ declare namespace Electron {
5575
5584
  */
5576
5585
  reload(): void;
5577
5586
  /**
5578
- * > **Note** The `BrowserView` class is deprecated, and replaced by the new
5587
+ * > [!WARNING] The `BrowserView` class is deprecated, and replaced by the new
5579
5588
  * `WebContentsView` class.
5580
5589
  *
5581
5590
  * @experimental
@@ -5615,7 +5624,7 @@ declare namespace Electron {
5615
5624
  /**
5616
5625
  * Sets the properties for the window's taskbar button.
5617
5626
  *
5618
- * **Note:** `relaunchCommand` and `relaunchDisplayName` must always be set
5627
+ * > [!NOTE] `relaunchCommand` and `relaunchDisplayName` must always be set
5619
5628
  * together. If one of those properties is not set, then neither will be used.
5620
5629
  *
5621
5630
  * @platform win32
@@ -5693,7 +5702,7 @@ declare namespace Electron {
5693
5702
  *
5694
5703
  * See the Windows documentation for more details.
5695
5704
  *
5696
- * **Note:** This method is only supported on Windows 11 22H2 and up.
5705
+ * > [!NOTE] This method is only supported on Windows 11 22H2 and up.
5697
5706
  *
5698
5707
  * @platform win32
5699
5708
  */
@@ -5702,14 +5711,14 @@ declare namespace Electron {
5702
5711
  * Resizes and moves the window to the supplied bounds. Any properties that are not
5703
5712
  * supplied will default to their current values.
5704
5713
  *
5705
- * **Note:** On macOS, the y-coordinate value cannot be smaller than the Tray
5714
+ * > [!NOTE] On macOS, the y-coordinate value cannot be smaller than the Tray
5706
5715
  * height. The tray height has changed over time and depends on the operating
5707
5716
  * system, but is between 20-40px. Passing a value lower than the tray height will
5708
5717
  * result in a window that is flush to the tray.
5709
5718
  */
5710
5719
  setBounds(bounds: Partial<Rectangle>, animate?: boolean): void;
5711
5720
  /**
5712
- * > **Note** The `BrowserView` class is deprecated, and replaced by the new
5721
+ * > [!WARNING] The `BrowserView` class is deprecated, and replaced by the new
5713
5722
  * `WebContentsView` class.
5714
5723
  *
5715
5724
  * @experimental
@@ -5764,7 +5773,7 @@ declare namespace Electron {
5764
5773
  /**
5765
5774
  * Sets whether the window should be in fullscreen mode.
5766
5775
  *
5767
- * **Note:** On macOS, fullscreen transitions take place asynchronously. If further
5776
+ * > [!NOTE] On macOS, fullscreen transitions take place asynchronously. If further
5768
5777
  * actions depend on the fullscreen state, use the 'enter-full-screen' or
5769
5778
  * 'leave-full-screen' events.
5770
5779
  */
@@ -6002,7 +6011,7 @@ declare namespace Electron {
6002
6011
  * Raises `browserView` above other `BrowserView`s attached to `win`. Throws an
6003
6012
  * error if `browserView` is not attached to `win`.
6004
6013
  *
6005
- * > **Note** The `BrowserView` class is deprecated, and replaced by the new
6014
+ * > [!WARNING] The `BrowserView` class is deprecated, and replaced by the new
6006
6015
  * `WebContentsView` class.
6007
6016
  *
6008
6017
  * @experimental
@@ -6014,7 +6023,7 @@ declare namespace Electron {
6014
6023
  * `undefined` clears the touch bar. This method only has an effect if the machine
6015
6024
  * has a touch bar.
6016
6025
  *
6017
- * **Note:** The TouchBar API is currently experimental and may change or be
6026
+ * > [!NOTE] The TouchBar API is currently experimental and may change or be
6018
6027
  * removed in future Electron releases.
6019
6028
  *
6020
6029
  * @platform darwin
@@ -6032,7 +6041,7 @@ declare namespace Electron {
6032
6041
  /**
6033
6042
  * Sets whether the window should be visible on all workspaces.
6034
6043
  *
6035
- * **Note:** This API does nothing on Windows.
6044
+ * > [!NOTE] This API does nothing on Windows.
6036
6045
  *
6037
6046
  * @platform darwin,linux
6038
6047
  */
@@ -6172,7 +6181,7 @@ declare namespace Electron {
6172
6181
  /**
6173
6182
  * A `boolean` property that determines whether the menu bar should be visible.
6174
6183
  *
6175
- * **Note:** If the menu bar is auto-hide, users can still bring up the menu bar by
6184
+ * > [!NOTE] If the menu bar is auto-hide, users can still bring up the menu bar by
6176
6185
  * pressing the single `Alt` key.
6177
6186
  *
6178
6187
  * @platform win32,linux
@@ -6232,7 +6241,7 @@ declare namespace Electron {
6232
6241
  /**
6233
6242
  * A `string` property that determines the title of the native window.
6234
6243
  *
6235
- * **Note:** The title of the web page can be different from the title of the
6244
+ * > [!NOTE] The title of the web page can be different from the title of the
6236
6245
  * native window.
6237
6246
  */
6238
6247
  title: string;
@@ -6240,7 +6249,7 @@ declare namespace Electron {
6240
6249
  * A `boolean` property that determines whether the window is visible on all
6241
6250
  * workspaces.
6242
6251
  *
6243
- * **Note:** Always returns false on Windows.
6252
+ * > [!NOTE] Always returns false on Windows.
6244
6253
  *
6245
6254
  * @platform darwin,linux
6246
6255
  */
@@ -6650,7 +6659,7 @@ declare namespace Electron {
6650
6659
  /**
6651
6660
  * Writes the `title` (macOS only) and `url` into the clipboard as a bookmark.
6652
6661
  *
6653
- * **Note:** Most apps on Windows don't support pasting bookmarks into them so you
6662
+ * > [!NOTE] Most apps on Windows don't support pasting bookmarks into them so you
6654
6663
  * can use `clipboard.write` to write both a bookmark and fallback text to the
6655
6664
  * clipboard.
6656
6665
  *
@@ -6701,14 +6710,14 @@ declare namespace Electron {
6701
6710
  * If you're appending an argument like `--switch=value`, consider using
6702
6711
  * `appendSwitch('switch', 'value')` instead.
6703
6712
  *
6704
- * **Note:** This will not affect `process.argv`. The intended usage of this
6713
+ * > [!NOTE] This will not affect `process.argv`. The intended usage of this
6705
6714
  * function is to control Chromium's behavior.
6706
6715
  */
6707
6716
  appendArgument(value: string): void;
6708
6717
  /**
6709
6718
  * Append a switch (with optional `value`) to Chromium's command line.
6710
6719
  *
6711
- * **Note:** This will not affect `process.argv`. The intended usage of this
6720
+ * > [!NOTE] This will not affect `process.argv`. The intended usage of this
6712
6721
  * function is to control Chromium's behavior.
6713
6722
  */
6714
6723
  appendSwitch(the_switch: string, value?: string): void;
@@ -6719,7 +6728,7 @@ declare namespace Electron {
6719
6728
  * to be used for application-specific command line arguments. For the latter,
6720
6729
  * please use `process.argv`.
6721
6730
  *
6722
- * **Note:** When the switch is not present or has no value, it returns empty
6731
+ * > [!NOTE] When the switch is not present or has no value, it returns empty
6723
6732
  * string.
6724
6733
  */
6725
6734
  getSwitchValue(the_switch: string): string;
@@ -6730,7 +6739,7 @@ declare namespace Electron {
6730
6739
  /**
6731
6740
  * Removes the specified switch from Chromium's command line.
6732
6741
  *
6733
- * **Note:** This will not affect `process.argv`. The intended usage of this
6742
+ * > [!NOTE] This will not affect `process.argv`. The intended usage of this
6734
6743
  * function is to control Chromium's behavior.
6735
6744
  */
6736
6745
  removeSwitch(the_switch: string): void;
@@ -7008,7 +7017,7 @@ declare namespace Electron {
7008
7017
  * parameters in a renderer process will not result in those parameters being sent
7009
7018
  * with crashes that occur in other renderer processes or in the main process.
7010
7019
  *
7011
- * **Note:** Parameters have limits on the length of the keys and values. Key names
7020
+ * > [!NOTE] Parameters have limits on the length of the keys and values. Key names
7012
7021
  * must be no longer than 39 bytes, and values must be no longer than 20320 bytes.
7013
7022
  * Keys with names longer than the maximum will be silently ignored. Key values
7014
7023
  * longer than the maximum length will be truncated.
@@ -7020,7 +7029,7 @@ declare namespace Electron {
7020
7029
  * be returned until it is uploaded. In the case that there are no uploaded
7021
7030
  * reports, `null` is returned.
7022
7031
  *
7023
- * **Note:** This method is only available in the main process.
7032
+ * > [!NOTE] This method is only available in the main process.
7024
7033
  */
7025
7034
  getLastCrashReport(): (CrashReport) | (null);
7026
7035
  /**
@@ -7031,14 +7040,14 @@ declare namespace Electron {
7031
7040
  * Returns all uploaded crash reports. Each report contains the date and uploaded
7032
7041
  * ID.
7033
7042
  *
7034
- * **Note:** This method is only available in the main process.
7043
+ * > [!NOTE] This method is only available in the main process.
7035
7044
  */
7036
7045
  getUploadedReports(): CrashReport[];
7037
7046
  /**
7038
7047
  * Whether reports should be submitted to the server. Set through the `start`
7039
7048
  * method or `setUploadToServer`.
7040
7049
  *
7041
- * **Note:** This method is only available in the main process.
7050
+ * > [!NOTE] This method is only available in the main process.
7042
7051
  */
7043
7052
  getUploadToServer(): boolean;
7044
7053
  /**
@@ -7050,7 +7059,7 @@ declare namespace Electron {
7050
7059
  * This would normally be controlled by user preferences. This has no effect if
7051
7060
  * called before `start` is called.
7052
7061
  *
7053
- * **Note:** This method is only available in the main process.
7062
+ * > [!NOTE] This method is only available in the main process.
7054
7063
  */
7055
7064
  setUploadToServer(uploadToServer: boolean): void;
7056
7065
  /**
@@ -7064,19 +7073,19 @@ declare namespace Electron {
7064
7073
  * renderer process is created, then that renderer process will not be monitored by
7065
7074
  * the crash reporter.
7066
7075
  *
7067
- * **Note:** You can test out the crash reporter by generating a crash using
7076
+ * > [!NOTE] You can test out the crash reporter by generating a crash using
7068
7077
  * `process.crash()`.
7069
7078
  *
7070
- * **Note:** If you need to send additional/updated `extra` parameters after your
7079
+ * > [!NOTE] If you need to send additional/updated `extra` parameters after your
7071
7080
  * first call `start` you can call `addExtraParameter`.
7072
7081
  *
7073
- * **Note:** Parameters passed in `extra`, `globalExtra` or set with
7082
+ * > [!NOTE] Parameters passed in `extra`, `globalExtra` or set with
7074
7083
  * `addExtraParameter` have limits on the length of the keys and values. Key names
7075
7084
  * must be at most 39 bytes long, and values must be no longer than 127 bytes. Keys
7076
7085
  * with names longer than the maximum will be silently ignored. Key values longer
7077
7086
  * than the maximum length will be truncated.
7078
7087
  *
7079
- * **Note:** This method is only available in the main process.
7088
+ * > [!NOTE] This method is only available in the main process.
7080
7089
  */
7081
7090
  start(options: CrashReporterStartOptions): void;
7082
7091
  }
@@ -7234,7 +7243,7 @@ declare namespace Electron {
7234
7243
  * `DesktopCapturerSource` represents a screen or an individual window that can be
7235
7244
  * captured.
7236
7245
  *
7237
- * **Note** Capturing the screen contents requires user consent on macOS 10.15
7246
+ * > [!NOTE] Capturing the screen contents requires user consent on macOS 10.15
7238
7247
  * Catalina or higher, which can detected by
7239
7248
  * `systemPreferences.getMediaAccessStatus`.
7240
7249
  */
@@ -7398,11 +7407,11 @@ declare namespace Electron {
7398
7407
  * `'png'` is good but `'.png'` and `'*.png'` are bad). To show all files, use the
7399
7408
  * `'*'` wildcard (no other wildcard is supported).
7400
7409
  *
7401
- * **Note:** On Windows and Linux an open dialog can not be both a file selector
7410
+ * > [!NOTE] On Windows and Linux an open dialog can not be both a file selector
7402
7411
  * and a directory selector, so if you set `properties` to `['openFile',
7403
7412
  * 'openDirectory']` on these platforms, a directory selector will be shown.
7404
7413
  *
7405
- * **Note:** On Linux `defaultPath` is not supported when using portal file chooser
7414
+ * > [!NOTE] On Linux `defaultPath` is not supported when using portal file chooser
7406
7415
  * dialogs unless the portal backend is version 4 or higher. You can use
7407
7416
  * `--xdg-portal-required-version` command-line switch to force gtk or kde dialogs.
7408
7417
  */
@@ -7428,11 +7437,11 @@ declare namespace Electron {
7428
7437
  * `'png'` is good but `'.png'` and `'*.png'` are bad). To show all files, use the
7429
7438
  * `'*'` wildcard (no other wildcard is supported).
7430
7439
  *
7431
- * **Note:** On Windows and Linux an open dialog can not be both a file selector
7440
+ * > [!NOTE] On Windows and Linux an open dialog can not be both a file selector
7432
7441
  * and a directory selector, so if you set `properties` to `['openFile',
7433
7442
  * 'openDirectory']` on these platforms, a directory selector will be shown.
7434
7443
  *
7435
- * **Note:** On Linux `defaultPath` is not supported when using portal file chooser
7444
+ * > [!NOTE] On Linux `defaultPath` is not supported when using portal file chooser
7436
7445
  * dialogs unless the portal backend is version 4 or higher. You can use
7437
7446
  * `--xdg-portal-required-version` command-line switch to force gtk or kde dialogs.
7438
7447
  */
@@ -7451,11 +7460,11 @@ declare namespace Electron {
7451
7460
  * `'png'` is good but `'.png'` and `'*.png'` are bad). To show all files, use the
7452
7461
  * `'*'` wildcard (no other wildcard is supported).
7453
7462
  *
7454
- * **Note:** On Windows and Linux an open dialog can not be both a file selector
7463
+ * > [!NOTE] On Windows and Linux an open dialog can not be both a file selector
7455
7464
  * and a directory selector, so if you set `properties` to `['openFile',
7456
7465
  * 'openDirectory']` on these platforms, a directory selector will be shown.
7457
7466
  *
7458
- * **Note:** On Linux `defaultPath` is not supported when using portal file chooser
7467
+ * > [!NOTE] On Linux `defaultPath` is not supported when using portal file chooser
7459
7468
  * dialogs unless the portal backend is version 4 or higher. You can use
7460
7469
  * `--xdg-portal-required-version` command-line switch to force gtk or kde dialogs.
7461
7470
  */
@@ -7474,11 +7483,11 @@ declare namespace Electron {
7474
7483
  * `'png'` is good but `'.png'` and `'*.png'` are bad). To show all files, use the
7475
7484
  * `'*'` wildcard (no other wildcard is supported).
7476
7485
  *
7477
- * **Note:** On Windows and Linux an open dialog can not be both a file selector
7486
+ * > [!NOTE] On Windows and Linux an open dialog can not be both a file selector
7478
7487
  * and a directory selector, so if you set `properties` to `['openFile',
7479
7488
  * 'openDirectory']` on these platforms, a directory selector will be shown.
7480
7489
  *
7481
- * **Note:** On Linux `defaultPath` is not supported when using portal file chooser
7490
+ * > [!NOTE] On Linux `defaultPath` is not supported when using portal file chooser
7482
7491
  * dialogs unless the portal backend is version 4 or higher. You can use
7483
7492
  * `--xdg-portal-required-version` command-line switch to force gtk or kde dialogs.
7484
7493
  */
@@ -7499,7 +7508,7 @@ declare namespace Electron {
7499
7508
  * The `filters` specifies an array of file types that can be displayed, see
7500
7509
  * `dialog.showOpenDialog` for an example.
7501
7510
  *
7502
- * **Note:** On macOS, using the asynchronous version is recommended to avoid
7511
+ * > [!NOTE] On macOS, using the asynchronous version is recommended to avoid
7503
7512
  * issues when expanding and collapsing the dialog.
7504
7513
  */
7505
7514
  showSaveDialog(window: BaseWindow, options: SaveDialogOptions): Promise<Electron.SaveDialogReturnValue>;
@@ -7519,7 +7528,7 @@ declare namespace Electron {
7519
7528
  * The `filters` specifies an array of file types that can be displayed, see
7520
7529
  * `dialog.showOpenDialog` for an example.
7521
7530
  *
7522
- * **Note:** On macOS, using the asynchronous version is recommended to avoid
7531
+ * > [!NOTE] On macOS, using the asynchronous version is recommended to avoid
7523
7532
  * issues when expanding and collapsing the dialog.
7524
7533
  */
7525
7534
  showSaveDialog(options: SaveDialogOptions): Promise<Electron.SaveDialogReturnValue>;
@@ -7644,7 +7653,7 @@ declare namespace Electron {
7644
7653
  * However, the request remains active until either the application becomes active
7645
7654
  * or the request is canceled.
7646
7655
  *
7647
- * **Note:** This method can only be used while the app is not focused; when the
7656
+ * > [!NOTE] This method can only be used while the app is not focused; when the
7648
7657
  * app is focused it will return -1.
7649
7658
  *
7650
7659
  * @platform darwin
@@ -7812,7 +7821,7 @@ declare namespace Electron {
7812
7821
  /**
7813
7822
  * The file name of the download item.
7814
7823
  *
7815
- * **Note:** The file name is not always the same as the actual one saved in local
7824
+ * > [!NOTE] The file name is not always the same as the actual one saved in local
7816
7825
  * disk. If user changes the file name in a prompted download saving dialog, the
7817
7826
  * actual name of saved file will be different.
7818
7827
  */
@@ -7852,7 +7861,7 @@ declare namespace Electron {
7852
7861
  * The current state. Can be `progressing`, `completed`, `cancelled` or
7853
7862
  * `interrupted`.
7854
7863
  *
7855
- * **Note:** The following methods are useful specifically to resume a `cancelled`
7864
+ * > [!NOTE] The following methods are useful specifically to resume a `cancelled`
7856
7865
  * item when session is restarted.
7857
7866
  */
7858
7867
  getState(): ('progressing' | 'completed' | 'cancelled' | 'interrupted');
@@ -7885,7 +7894,7 @@ declare namespace Electron {
7885
7894
  /**
7886
7895
  * Resumes the download that has been paused.
7887
7896
  *
7888
- * **Note:** To enable resumable downloads the server you are downloading from must
7897
+ * > [!NOTE] To enable resumable downloads the server you are downloading from must
7889
7898
  * support range requests and provide both `Last-Modified` and `ETag` header
7890
7899
  * values. Otherwise `resume()` will dismiss previously received bytes and restart
7891
7900
  * the download from the beginning.
@@ -7997,14 +8006,14 @@ declare namespace Electron {
7997
8006
  /**
7998
8007
  * A list of all loaded extensions.
7999
8008
  *
8000
- * **Note:** This API cannot be called before the `ready` event of the `app` module
8009
+ * > [!NOTE] This API cannot be called before the `ready` event of the `app` module
8001
8010
  * is emitted.
8002
8011
  */
8003
8012
  getAllExtensions(): Extension[];
8004
8013
  /**
8005
8014
  * The loaded extension with the given ID.
8006
8015
  *
8007
- * **Note:** This API cannot be called before the `ready` event of the `app` module
8016
+ * > [!NOTE] This API cannot be called before the `ready` event of the `app` module
8008
8017
  * is emitted.
8009
8018
  */
8010
8019
  getExtension(extensionId: string): (Extension) | (null);
@@ -8025,17 +8034,17 @@ declare namespace Electron {
8025
8034
  *
8026
8035
  * This API does not support loading packed (.crx) extensions.
8027
8036
  *
8028
- * **Note:** This API cannot be called before the `ready` event of the `app` module
8037
+ * > [!NOTE] This API cannot be called before the `ready` event of the `app` module
8029
8038
  * is emitted.
8030
8039
  *
8031
- * **Note:** Loading extensions into in-memory (non-persistent) sessions is not
8040
+ * > [!NOTE] Loading extensions into in-memory (non-persistent) sessions is not
8032
8041
  * supported and will throw an error.
8033
8042
  */
8034
8043
  loadExtension(path: string, options?: LoadExtensionOptions): Promise<Electron.Extension>;
8035
8044
  /**
8036
8045
  * Unloads an extension.
8037
8046
  *
8038
- * **Note:** This API cannot be called before the `ready` event of the `app` module
8047
+ * > [!NOTE] This API cannot be called before the `ready` event of the `app` module
8039
8048
  * is emitted.
8040
8049
  */
8041
8050
  removeExtension(extensionId: string): void;
@@ -8707,7 +8716,7 @@ declare namespace Electron {
8707
8716
  *
8708
8717
  * If you do not need a response to the message, consider using `ipcRenderer.send`.
8709
8718
  *
8710
- * > **Note** Sending non-standard JavaScript types such as DOM objects or special
8719
+ * > [!NOTE] Sending non-standard JavaScript types such as DOM objects or special
8711
8720
  * Electron objects will throw an exception.
8712
8721
  *
8713
8722
  * Since the main process does not have support for DOM objects such as
@@ -8715,7 +8724,7 @@ declare namespace Electron {
8715
8724
  * Electron's IPC to the main process, as the main process would have no way to
8716
8725
  * decode them. Attempting to send such objects over IPC will result in an error.
8717
8726
  *
8718
- * > **Note** If the handler in the main process throws an error, the promise
8727
+ * > [!NOTE] If the handler in the main process throws an error, the promise
8719
8728
  * returned by `invoke` will reject. However, the `Error` object in the renderer
8720
8729
  * process will not be the same as the one thrown in the main process.
8721
8730
  */
@@ -8810,9 +8819,9 @@ declare namespace Electron {
8810
8819
  * The main process handles it by listening for `channel` with `ipcMain` module,
8811
8820
  * and replies by setting `event.returnValue`.
8812
8821
  *
8813
- * > :warning: **WARNING**: Sending a synchronous message will block the whole
8814
- * renderer process until the reply is received, so use this method only as a last
8815
- * resort. It's much better to use the asynchronous version, `invoke()`.
8822
+ * > [!WARNING] Sending a synchronous message will block the whole renderer process
8823
+ * until the reply is received, so use this method only as a last resort. It's much
8824
+ * better to use the asynchronous version, `invoke()`.
8816
8825
  */
8817
8826
  sendSync(channel: string, ...args: any[]): any;
8818
8827
  /**
@@ -9027,7 +9036,7 @@ declare namespace Electron {
9027
9036
  /**
9028
9037
  * The application menu, if set, or `null`, if not set.
9029
9038
  *
9030
- * **Note:** The returned `Menu` instance doesn't support dynamic addition or
9039
+ * > [!NOTE] The returned `Menu` instance doesn't support dynamic addition or
9031
9040
  * removal of menu items. Instance properties can still be dynamically modified.
9032
9041
  */
9033
9042
  static getApplicationMenu(): (Menu) | (null);
@@ -9058,7 +9067,7 @@ declare namespace Electron {
9058
9067
  * Passing `null` will suppress the default menu. On Windows and Linux, this has
9059
9068
  * the additional effect of removing the menu bar from the window.
9060
9069
  *
9061
- * **Note:** The default menu will be created automatically if the app does not set
9070
+ * > [!NOTE] The default menu will be created automatically if the app does not set
9062
9071
  * one. It contains standard items such as `File`, `Edit`, `View`, `Window` and
9063
9072
  * `Help`.
9064
9073
  */
@@ -9202,7 +9211,7 @@ declare namespace Electron {
9202
9211
  * An `Accelerator | null` indicating the item's user-assigned accelerator for the
9203
9212
  * menu item.
9204
9213
  *
9205
- * **Note:** This property is only initialized after the `MenuItem` has been added
9214
+ * > [!NOTE] This property is only initialized after the `MenuItem` has been added
9206
9215
  * to a `Menu`. Either via `Menu.buildFromTemplate` or via
9207
9216
  * `Menu.append()/insert()`. Accessing before initialization will just return
9208
9217
  * `null`.
@@ -9379,15 +9388,15 @@ declare namespace Electron {
9379
9388
  */
9380
9389
  static createFromNamedImage(imageName: string, hslShift?: number[]): NativeImage;
9381
9390
  /**
9382
- * Creates a new `NativeImage` instance from a file located at `path`. This method
9383
- * returns an empty image if the `path` does not exist, cannot be read, or is not a
9384
- * valid image.
9391
+ * Creates a new `NativeImage` instance from an image file (e.g., PNG or JPEG)
9392
+ * located at `path`. This method returns an empty image if the `path` does not
9393
+ * exist, cannot be read, or is not a valid image.
9385
9394
  */
9386
9395
  static createFromPath(path: string): NativeImage;
9387
9396
  /**
9388
9397
  * fulfilled with the file's thumbnail preview image, which is a NativeImage.
9389
9398
  *
9390
- * Note: The Windows implementation will ignore `size.height` and scale the height
9399
+ * > [!NOTE] Windows implementation will ignore `size.height` and scale the height
9391
9400
  * according to `size.width`.
9392
9401
  *
9393
9402
  * @platform darwin,win32
@@ -9701,7 +9710,7 @@ declare namespace Electron {
9701
9710
  * intercepted request to the built-in handler. webRequest handlers will still be
9702
9711
  * triggered when bypassing custom protocols.
9703
9712
  *
9704
- * Note: in the utility process custom protocols are not supported.
9713
+ * > [!NOTE] In the utility process, custom protocols are not supported.
9705
9714
  */
9706
9715
  fetch(input: (string) | (GlobalRequest), init?: RequestInit & { bypassCustomProtocolHandlers?: boolean }): Promise<GlobalResponse>;
9707
9716
  /**
@@ -10464,7 +10473,7 @@ declare namespace Electron {
10464
10473
  * Starts preventing the system from entering lower-power mode. Returns an integer
10465
10474
  * identifying the power save blocker.
10466
10475
  *
10467
- * **Note:** `prevent-display-sleep` has higher precedence over
10476
+ * > [!NOTE] `prevent-display-sleep` has higher precedence over
10468
10477
  * `prevent-app-suspension`. Only the highest precedence type takes effect. In
10469
10478
  * other words, `prevent-display-sleep` always takes precedence over
10470
10479
  * `prevent-app-suspension`.
@@ -10845,7 +10854,7 @@ declare namespace Electron {
10845
10854
  */
10846
10855
  registerHttpProtocol(scheme: string, handler: (request: ProtocolRequest, callback: (response: ProtocolResponse) => void) => void): boolean;
10847
10856
  /**
10848
- * **Note:** This method can only be used before the `ready` event of the `app`
10857
+ * > [!NOTE] This method can only be used before the `ready` event of the `app`
10849
10858
  * module gets emitted and can be called only once.
10850
10859
  *
10851
10860
  * Registers the `scheme` as standard, secure, bypasses content security policy for
@@ -11304,7 +11313,7 @@ declare namespace Electron {
11304
11313
  /**
11305
11314
  * The current absolute position of the mouse pointer.
11306
11315
  *
11307
- * **Note:** The return value is a DIP point, not a screen physical point.
11316
+ * > [!NOTE] The return value is a DIP point, not a screen physical point.
11308
11317
  */
11309
11318
  getCursorScreenPoint(): Point;
11310
11319
  /**
@@ -12142,8 +12151,8 @@ declare namespace Electron {
12142
12151
  * Whether the word was successfully written to the custom dictionary. This API
12143
12152
  * will not work on non-persistent (in-memory) sessions.
12144
12153
  *
12145
- * **Note:** On macOS and Windows 10 this word will be written to the OS custom
12146
- * dictionary as well
12154
+ * > [!NOTE] On macOS and Windows, this word will be written to the OS custom
12155
+ * dictionary as well.
12147
12156
  */
12148
12157
  addWordToSpellCheckerDictionary(word: string): boolean;
12149
12158
  /**
@@ -12173,7 +12182,7 @@ declare namespace Electron {
12173
12182
  * This method clears more types of data and is more thorough than the
12174
12183
  * `clearStorageData` method.
12175
12184
  *
12176
- * **Note:** Cookies are stored at a broader scope than origins. When removing
12185
+ * > [!NOTE] Cookies are stored at a broader scope than origins. When removing
12177
12186
  * cookies and filtering by `origins` (or `excludeOrigins`), the cookies will be
12178
12187
  * removed at the registrable domain level. For example, clearing cookies for the
12179
12188
  * origin `https://really.specific.origin.example.com/` will end up clearing all
@@ -12181,7 +12190,7 @@ declare namespace Electron {
12181
12190
  * `https://my.website.example.co.uk/` will end up clearing all cookies for
12182
12191
  * `example.co.uk`.
12183
12192
  *
12184
- * **Note:** Clearing cache data will also clear the shared dictionary cache. This
12193
+ * > [!NOTE] Clearing cache data will also clear the shared dictionary cache. This
12185
12194
  * means that any dictionaries used for compression may be reloaded after clearing
12186
12195
  * the cache. If you wish to clear the shared dictionary cache but leave other
12187
12196
  * cached data intact, you may want to use the `clearSharedDictionaryCache` method.
@@ -12211,7 +12220,7 @@ declare namespace Electron {
12211
12220
  /**
12212
12221
  * Resolves when all connections are closed.
12213
12222
  *
12214
- * **Note:** It will terminate / fail all requests currently in flight.
12223
+ * > [!NOTE] It will terminate / fail all requests currently in flight.
12215
12224
  */
12216
12225
  closeAllConnections(): Promise<void>;
12217
12226
  /**
@@ -12231,7 +12240,7 @@ declare namespace Electron {
12231
12240
  * Initiates a download of the resource at `url`. The API will generate a
12232
12241
  * DownloadItem that can be accessed with the will-download event.
12233
12242
  *
12234
- * **Note:** This does not perform any security checks that relate to a page's
12243
+ * > [!NOTE] This does not perform any security checks that relate to a page's
12235
12244
  * origin, unlike `webContents.downloadURL`.
12236
12245
  */
12237
12246
  downloadURL(url: string, options?: DownloadURLOptions): void;
@@ -12280,7 +12289,7 @@ declare namespace Electron {
12280
12289
  /**
12281
12290
  * A list of all loaded extensions.
12282
12291
  *
12283
- * **Note:** This API cannot be called before the `ready` event of the `app` module
12292
+ * > [!NOTE] This API cannot be called before the `ready` event of the `app` module
12284
12293
  * is emitted.
12285
12294
  *
12286
12295
  * **Deprecated:** Use the new `ses.extensions.getAllExtensions` API.
@@ -12299,7 +12308,7 @@ declare namespace Electron {
12299
12308
  /**
12300
12309
  * The loaded extension with the given ID.
12301
12310
  *
12302
- * **Note:** This API cannot be called before the `ready` event of the `app` module
12311
+ * > [!NOTE] This API cannot be called before the `ready` event of the `app` module
12303
12312
  * is emitted.
12304
12313
  *
12305
12314
  * **Deprecated:** Use the new `ses.extensions.getExtension` API.
@@ -12348,7 +12357,7 @@ declare namespace Electron {
12348
12357
  * this setting is an empty list Electron will try to populate this setting with
12349
12358
  * the current OS locale. This setting is persisted across restarts.
12350
12359
  *
12351
- * **Note:** On macOS the OS spellchecker is used and has its own list of
12360
+ * > [!NOTE] On macOS, the OS spellchecker is used and has its own list of
12352
12361
  * languages. On macOS, this API will return whichever languages have been
12353
12362
  * configured by the OS.
12354
12363
  */
@@ -12395,10 +12404,10 @@ declare namespace Electron {
12395
12404
  *
12396
12405
  * This API does not support loading packed (.crx) extensions.
12397
12406
  *
12398
- * **Note:** This API cannot be called before the `ready` event of the `app` module
12407
+ * > [!NOTE] This API cannot be called before the `ready` event of the `app` module
12399
12408
  * is emitted.
12400
12409
  *
12401
- * **Note:** Loading extensions into in-memory (non-persistent) sessions is not
12410
+ * > [!NOTE] Loading extensions into in-memory (non-persistent) sessions is not
12402
12411
  * supported and will throw an error.
12403
12412
  *
12404
12413
  * **Deprecated:** Use the new `ses.extensions.loadExtension` API.
@@ -12421,7 +12430,7 @@ declare namespace Electron {
12421
12430
  /**
12422
12431
  * Unloads an extension.
12423
12432
  *
12424
- * **Note:** This API cannot be called before the `ready` event of the `app` module
12433
+ * > [!NOTE] This API cannot be called before the `ready` event of the `app` module
12425
12434
  * is emitted.
12426
12435
  *
12427
12436
  * **Deprecated:** Use the new `ses.extensions.removeExtension` API.
@@ -12433,8 +12442,8 @@ declare namespace Electron {
12433
12442
  * Whether the word was successfully removed from the custom dictionary. This API
12434
12443
  * will not work on non-persistent (in-memory) sessions.
12435
12444
  *
12436
- * **Note:** On macOS and Windows 10 this word will be removed from the OS custom
12437
- * dictionary as well
12445
+ * > [!NOTE] On macOS and Windows, this word will be removed from the OS custom
12446
+ * dictionary as well.
12438
12447
  */
12439
12448
  removeWordFromSpellCheckerDictionary(word: string): boolean;
12440
12449
  /**
@@ -12574,8 +12583,8 @@ declare namespace Electron {
12574
12583
  * Please note the trailing slash. The URL to the dictionaries is formed as
12575
12584
  * `${url}${filename}`.
12576
12585
  *
12577
- * **Note:** On macOS the OS spellchecker is used and therefore we do not download
12578
- * any dictionary files. This API is a no-op on macOS.
12586
+ * > [!NOTE] On macOS, the OS spellchecker is used and therefore we do not download
12587
+ * any dictionary files. This API is a no-op on macOS.
12579
12588
  */
12580
12589
  setSpellCheckerDictionaryDownloadURL(url: string): void;
12581
12590
  /**
@@ -12588,8 +12597,8 @@ declare namespace Electron {
12588
12597
  * must call this API with an array of language codes. You can get the list of
12589
12598
  * supported language codes with the `ses.availableSpellCheckerLanguages` property.
12590
12599
  *
12591
- * **Note:** On macOS the OS spellchecker is used and will detect your language
12592
- * automatically. This API is a no-op on macOS.
12600
+ * > [!NOTE] On macOS, the OS spellchecker is used and will detect your language
12601
+ * automatically. This API is a no-op on macOS.
12593
12602
  */
12594
12603
  setSpellCheckerLanguages(languages: string[]): void;
12595
12604
  /**
@@ -14288,7 +14297,7 @@ declare namespace Electron {
14288
14297
  /**
14289
14298
  * Emitted when the mouse is released from clicking the tray icon.
14290
14299
  *
14291
- * Note: This will not be emitted if you have set a context menu for your Tray
14300
+ * > [!NOTE] This will not be emitted if you have set a context menu for your Tray
14292
14301
  * using `tray.setContextMenu`, as a result of macOS-level constraints.
14293
14302
  *
14294
14303
  * @platform darwin
@@ -14619,7 +14628,7 @@ declare namespace Electron {
14619
14628
  // Docs: https://electronjs.org/docs/api/utility-process
14620
14629
 
14621
14630
  /**
14622
- * **Note:** `utilityProcess.fork` can only be called after the `ready` event has
14631
+ * > [!NOTE] `utilityProcess.fork` can only be called after the `ready` event has
14623
14632
  * been emitted on `App`.
14624
14633
  */
14625
14634
  static fork(modulePath: string, args?: string[], options?: ForkOptions): UtilityProcess;
@@ -14778,7 +14787,7 @@ declare namespace Electron {
14778
14787
  * `undefined`. When the child process exits, then the value is `undefined` after
14779
14788
  * the `exit` event is emitted.
14780
14789
  *
14781
- * **Note:** You can use the `pid` to determine if the process is currently
14790
+ * > [!NOTE] You can use the `pid` to determine if the process is currently
14782
14791
  * running.
14783
14792
  */
14784
14793
  pid: (number) | (undefined);
@@ -14859,12 +14868,12 @@ declare namespace Electron {
14859
14868
  * * Similar to CSS Color Module Level 3 keywords, but case-sensitive.
14860
14869
  * * e.g. `blueviolet` or `red`
14861
14870
  *
14862
- * **Note:** Hex format with alpha takes `AARRGGBB` or `ARGB`, _not_ `RRGGBBAA` or
14871
+ * > [!NOTE] Hex format with alpha takes `AARRGGBB` or `ARGB`, _not_ `RRGGBBAA` or
14863
14872
  * `RGB`.
14864
14873
  */
14865
14874
  setBackgroundColor(color: string): void;
14866
14875
  /**
14867
- * **Note:** The area cutout of the view's border still captures clicks.
14876
+ * > [!NOTE] The area cutout of the view's border still captures clicks.
14868
14877
  */
14869
14878
  setBorderRadius(radius: number): void;
14870
14879
  setBounds(bounds: Rectangle): void;
@@ -16589,7 +16598,7 @@ declare namespace Electron {
16589
16598
  * Calling `event.preventDefault()` will ignore the `beforeunload` event handler
16590
16599
  * and allow the page to be unloaded.
16591
16600
  *
16592
- * **Note:** This will be emitted for `BrowserViews` but will _not_ be respected -
16601
+ * > [!NOTE] This will be emitted for `BrowserViews` but will _not_ be respected -
16593
16602
  * this is because we have chosen not to tie the `BrowserView` lifecycle to its
16594
16603
  * owning BrowserWindow should one exist per the specification.
16595
16604
  */
@@ -17263,8 +17272,10 @@ declare namespace Electron {
17263
17272
  */
17264
17273
  send(channel: string, ...args: any[]): void;
17265
17274
  /**
17266
- * Sends an input `event` to the page. **Note:** The `BrowserWindow` containing the
17267
- * contents needs to be focused for `sendInputEvent()` to work.
17275
+ * Sends an input `event` to the page.
17276
+ *
17277
+ * > [!NOTE] The `BrowserWindow` containing the contents needs to be focused for
17278
+ * `sendInputEvent()` to work.
17268
17279
  */
17269
17280
  sendInputEvent(inputEvent: (MouseInputEvent) | (MouseWheelInputEvent) | (KeyboardInputEvent)): void;
17270
17281
  /**
@@ -17346,8 +17357,7 @@ declare namespace Electron {
17346
17357
  /**
17347
17358
  * Sets the maximum and minimum pinch-to-zoom level.
17348
17359
  *
17349
- * > **NOTE**: Visual zoom is disabled by default in Electron. To re-enable it,
17350
- * call:
17360
+ * > [!NOTE] Visual zoom is disabled by default in Electron. To re-enable it, call:
17351
17361
  */
17352
17362
  setVisualZoomLevelLimits(minimumLevel: number, maximumLevel: number): Promise<void>;
17353
17363
  /**
@@ -17357,8 +17367,10 @@ declare namespace Electron {
17357
17367
  setWebRTCIPHandlingPolicy(policy: 'default' | 'default_public_interface_only' | 'default_public_and_private_interfaces' | 'disable_non_proxied_udp'): void;
17358
17368
  /**
17359
17369
  * Setting the WebRTC UDP Port Range allows you to restrict the udp port range used
17360
- * by WebRTC. By default the port range is unrestricted. **Note:** To reset to an
17361
- * unrestricted port range this value should be set to `{ min: 0, max: 0 }`.
17370
+ * by WebRTC. By default the port range is unrestricted.
17371
+ *
17372
+ * > [!NOTE] To reset to an unrestricted port range this value should be set to `{
17373
+ * min: 0, max: 0 }`.
17362
17374
  */
17363
17375
  setWebRTCUDPPortRange(udpPortRange: UdpPortRange): void;
17364
17376
  /**
@@ -17384,10 +17396,9 @@ declare namespace Electron {
17384
17396
  * limits of 300% and 50% of original size, respectively. The formula for this is
17385
17397
  * `scale := 1.2 ^ level`.
17386
17398
  *
17387
- * > **NOTE**: The zoom policy at the Chromium level is same-origin, meaning that
17388
- * the zoom level for a specific domain propagates across all instances of windows
17389
- * with the same domain. Differentiating the window URLs will make zoom work
17390
- * per-window.
17399
+ * > [!NOTE] The zoom policy at the Chromium level is same-origin, meaning that the
17400
+ * zoom level for a specific domain propagates across all instances of windows with
17401
+ * the same domain. Differentiating the window URLs will make zoom work per-window.
17391
17402
  */
17392
17403
  setZoomLevel(level: number): void;
17393
17404
  /**
@@ -17455,7 +17466,7 @@ declare namespace Electron {
17455
17466
  * A `WebContents | null` property that represents the of DevTools `WebContents`
17456
17467
  * associated with a given `WebContents`.
17457
17468
  *
17458
- * **Note:** Users should never store this object because it may become `null` when
17469
+ * > [!NOTE] Users should never store this object because it may become `null` when
17459
17470
  * the DevTools has been closed.
17460
17471
  *
17461
17472
  */
@@ -17685,7 +17696,8 @@ declare namespace Electron {
17685
17696
  removeInsertedCSS(key: string): void;
17686
17697
  /**
17687
17698
  * Set the security origin, content security policy and name of the isolated world.
17688
- * Note: If the `csp` is specified, then the `securityOrigin` also has to be
17699
+ *
17700
+ * > [!NOTE] If the `csp` is specified, then the `securityOrigin` also has to be
17689
17701
  * specified.
17690
17702
  */
17691
17703
  setIsolatedWorldInfo(worldId: number, info: Info): void;
@@ -17706,10 +17718,9 @@ declare namespace Electron {
17706
17718
  /**
17707
17719
  * Sets the maximum and minimum pinch-to-zoom level.
17708
17720
  *
17709
- * > **NOTE**: Visual zoom is disabled by default in Electron. To re-enable it,
17710
- * call:
17721
+ * > [!NOTE] Visual zoom is disabled by default in Electron. To re-enable it, call:
17711
17722
  *
17712
- * > **NOTE**: Visual zoom only applies to pinch-to-zoom behavior. Cmd+/-/0 zoom
17723
+ * > [!NOTE] Visual zoom only applies to pinch-to-zoom behavior. Cmd+/-/0 zoom
17713
17724
  * shortcuts are controlled by the 'zoomIn', 'zoomOut', and 'resetZoom' MenuItem
17714
17725
  * roles in the application Menu. To disable shortcuts, manually define the Menu
17715
17726
  * and omit zoom roles from the definition.
@@ -17727,10 +17738,9 @@ declare namespace Electron {
17727
17738
  * increment above or below represents zooming 20% larger or smaller to default
17728
17739
  * limits of 300% and 50% of original size, respectively.
17729
17740
  *
17730
- * > **NOTE**: The zoom policy at the Chromium level is same-origin, meaning that
17731
- * the zoom level for a specific domain propagates across all instances of windows
17732
- * with the same domain. Differentiating the window URLs will make zoom work
17733
- * per-window.
17741
+ * > [!NOTE] The zoom policy at the Chromium level is same-origin, meaning that the
17742
+ * zoom level for a specific domain propagates across all instances of windows with
17743
+ * the same domain. Differentiating the window URLs will make zoom work per-window.
17734
17744
  */
17735
17745
  setZoomLevel(level: number): void;
17736
17746
  /**
@@ -18893,10 +18903,9 @@ declare namespace Electron {
18893
18903
  * limits of 300% and 50% of original size, respectively. The formula for this is
18894
18904
  * `scale := 1.2 ^ level`.
18895
18905
  *
18896
- * > **NOTE**: The zoom policy at the Chromium level is same-origin, meaning that
18897
- * the zoom level for a specific domain propagates across all instances of windows
18898
- * with the same domain. Differentiating the window URLs will make zoom work
18899
- * per-window.
18906
+ * > [!NOTE] The zoom policy at the Chromium level is same-origin, meaning that the
18907
+ * zoom level for a specific domain propagates across all instances of windows with
18908
+ * the same domain. Differentiating the window URLs will make zoom work per-window.
18900
18909
  */
18901
18910
  setZoomLevel(level: number): void;
18902
18911
  /**
@@ -25041,7 +25050,7 @@ declare namespace NodeJS {
25041
25050
  *
25042
25051
  * Example:
25043
25052
  *
25044
- * **Note:** It returns the actual operating system version instead of kernel
25053
+ * > [!NOTE] It returns the actual operating system version instead of kernel
25045
25054
  * version on macOS unlike `os.release()`.
25046
25055
  */
25047
25056
  getSystemVersion(): string;