From 7c322fbe28e52f419be64bbf368bee5af5265262 Mon Sep 17 00:00:00 2001 From: Sebastian Hildebrandt Date: Mon, 26 Jul 2021 11:43:55 +0200 Subject: [PATCH] typescript typings fix processLoad() --- CHANGELOG.md | 1 + docs/history.html | 5 +++++ docs/index.html | 2 +- lib/index.d.ts | 2 +- 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ceb358c..b0bf170 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -77,6 +77,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page. | Version | Date | Comment | | -------------- | -------------- | -------- | +| 5.7.10 | 2021-07-26 | typescript typings fix `processLoad()` | | 5.7.9 | 2021-07-25 | `uuid()` better regedit path detection (win) | | 5.7.8 | 2021-07-16 | `battery()` fix designedCapacity (win, linux), fix catch error | | 5.7.7 | 2021-06-15 | `graphics()` improved detection screen resolution (macOS) | diff --git a/docs/history.html b/docs/history.html index 438c609..1596649 100644 --- a/docs/history.html +++ b/docs/history.html @@ -56,6 +56,11 @@ + + 5.7.10 + 2021-07-26 + typescript typings fix processLoad() + 5.7.9 2021-07-25 diff --git a/docs/index.html b/docs/index.html index 756c0e1..9dd6543 100644 --- a/docs/index.html +++ b/docs/index.html @@ -170,7 +170,7 @@
systeminformation
 
-
New Version: 5.7.9
+
New Version: 5.7.10
diff --git a/lib/index.d.ts b/lib/index.d.ts index eeb620b..423512e 100644 --- a/lib/index.d.ts +++ b/lib/index.d.ts @@ -919,7 +919,7 @@ export function wifiConnections(cb?: (data: Systeminformation.WifiConnectionData export function users(cb?: (data: Systeminformation.UserData[]) => any): Promise; export function processes(cb?: (data: Systeminformation.ProcessesData) => any): Promise; -export function processLoad(processName: string, cb?: (data: Systeminformation.ProcessesProcessLoadData) => any): Promise; +export function processLoad(processNames: string, cb?: (data: Systeminformation.ProcessesProcessLoadData[]) => any): Promise; export function services(serviceName: string, cb?: (data: Systeminformation.ServicesData[]) => any): Promise; export function dockerInfo(cb?: (data: Systeminformation.DockerInfoData) => any): Promise;