From ca49cd102b5d8733a54c1dd5547bc7367ce26a41 Mon Sep 17 00:00:00 2001 From: Sebastian Hildebrandt Date: Wed, 11 Dec 2024 06:34:59 +0100 Subject: [PATCH] typings: added definitions with overload --- CHANGELOG.md | 1 + docs/history.html | 5 +++++ docs/index.html | 2 +- lib/index.d.ts | 8 ++++++++ 4 files changed, 15 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index aaa5167..a7331bc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -90,6 +90,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page. | Version | Date | Comment | | ------- | ---------- | --------------------------------------------------------------------------------------------------- | +| 5.23.9 | 2024-12-11 | `typings` added definitions with overload | | 5.23.8 | 2024-12-10 | `system()` added Raspberry 500 detection | | 5.23.7 | 2024-12-09 | `networkInterfaces()` sanitizing SSID names (windows) | | 5.23.6 | 2024-12-08 | `system()` added Raspberry CM5 detection | diff --git a/docs/history.html b/docs/history.html index d7da78d..fcd2ea1 100644 --- a/docs/history.html +++ b/docs/history.html @@ -57,6 +57,11 @@ + + 5.23.9 + 2024-12-11 + typings added definitions with overload + 5.23.8 2024-12-10 diff --git a/docs/index.html b/docs/index.html index b9480de..798a69b 100644 --- a/docs/index.html +++ b/docs/index.html @@ -170,7 +170,7 @@
systeminformation
 
-
New Version: 5.23.8
+
New Version: 5.23.9
diff --git a/lib/index.d.ts b/lib/index.d.ts index 72a21c0..74ce82f 100644 --- a/lib/index.d.ts +++ b/lib/index.d.ts @@ -963,6 +963,7 @@ export function chassis(cb?: (data: Systeminformation.ChassisData) => any): Prom export function time(): Systeminformation.TimeData; export function osInfo(cb?: (data: Systeminformation.OsData) => any): Promise; export function versions(apps?: string, cb?: (data: Systeminformation.VersionData) => any): Promise; +export function versions(cb?: (data: Systeminformation.VersionData) => any): Promise; export function shell(cb?: (data: string) => any): Promise; export function uuid(cb?: (data: Systeminformation.UuidData) => any): Promise; @@ -981,6 +982,7 @@ export function battery(cb?: (data: Systeminformation.BatteryData) => any): Prom export function graphics(cb?: (data: Systeminformation.GraphicsData) => any): Promise; export function fsSize(drive?: string, cb?: (data: Systeminformation.FsSizeData[]) => any): Promise; +export function fsSize(cb?: (data: Systeminformation.FsSizeData[]) => any): Promise; export function fsOpenFiles(cb?: (data: Systeminformation.FsOpenFilesData[]) => any): Promise; export function blockDevices(cb?: (data: Systeminformation.BlockDevicesData[]) => any): Promise; export function fsStats(cb?: (data: Systeminformation.FsStatsData) => any): Promise; @@ -999,9 +1001,11 @@ export function networkInterfaces( ): Promise; export function networkStats(ifaces?: string, cb?: (data: Systeminformation.NetworkStatsData[]) => any): Promise; +export function networkStats(cb?: (data: Systeminformation.NetworkStatsData[]) => any): Promise; export function networkConnections(cb?: (data: Systeminformation.NetworkConnectionsData[]) => any): Promise; export function inetChecksite(url: string, cb?: (data: Systeminformation.InetChecksiteData) => any): Promise; export function inetLatency(host?: string, cb?: (data: number) => any): Promise; +export function inetLatency(cb?: (data: number) => any): Promise; export function wifiNetworks(cb?: (data: Systeminformation.WifiNetworkData[]) => any): Promise; export function wifiInterfaces(cb?: (data: Systeminformation.WifiInterfaceData[]) => any): Promise; @@ -1015,9 +1019,13 @@ export function services(serviceName: string, cb?: (data: Systeminformation.Serv export function dockerInfo(cb?: (data: Systeminformation.DockerInfoData) => any): Promise; export function dockerImages(all?: boolean, cb?: (data: Systeminformation.DockerImageData[]) => any): Promise; +export function dockerImages(cb?: (data: Systeminformation.DockerImageData[]) => any): Promise; export function dockerContainers(all?: boolean, cb?: (data: Systeminformation.DockerContainerData[]) => any): Promise; +export function dockerContainers(cb?: (data: Systeminformation.DockerContainerData[]) => any): Promise; export function dockerContainerStats(id?: string, cb?: (data: Systeminformation.DockerContainerStatsData[]) => any): Promise; +export function dockerContainerStats(cb?: (data: Systeminformation.DockerContainerStatsData[]) => any): Promise; export function dockerContainerProcesses(id?: string, cb?: (data: any) => any): Promise; +export function dockerContainerProcesses(cb?: (data: any) => any): Promise; export function dockerVolumes(cb?: (data: Systeminformation.DockerVolumeData[]) => any): Promise; export function dockerAll(cb?: (data: any) => any): Promise;