From a9f3754d225c4e5f82864866f308fbef08b540b9 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Thu, 13 Feb 2025 16:25:36 -0600 Subject: [PATCH] docs: fix powerMonitor event types (34-x-y) (#45615) docs: fix powerMonitor event types (#45518) * fix: powerMonitor event types * fix: thermal-state-change missing Returns Co-authored-by: Sam Maddock --- docs/api/power-monitor.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/api/power-monitor.md b/docs/api/power-monitor.md index 6f53114b12..c958310121 100644 --- a/docs/api/power-monitor.md +++ b/docs/api/power-monitor.md @@ -26,7 +26,10 @@ Emitted when system changes to battery power. ### Event: 'thermal-state-change' _macOS_ -* `state` string - The system's new thermal state. Can be `unknown`, `nominal`, `fair`, `serious`, `critical`. +Returns: + +* `details` Event\<\> + * `state` string - The system's new thermal state. Can be `unknown`, `nominal`, `fair`, `serious`, `critical`. Emitted when the thermal state of the system changes. Notification of a change in the thermal status of the system, such as entering a critical temperature @@ -42,7 +45,8 @@ See https://developer.apple.com/library/archive/documentation/Performance/Concep ### Event: 'speed-limit-change' _macOS_ _Windows_ -* `limit` number - The operating system's advertised speed limit for CPUs, in percent. +* `details` Event\<\> + * `limit` number - The operating system's advertised speed limit for CPUs, in percent. Notification of a change in the operating system's advertised speed limit for CPUs, in percent. Values below 100 indicate that the system is impairing