From c28dd60639f283567045dd593672095dd00bc2b3 Mon Sep 17 00:00:00 2001 From: Huakun Shen Date: Wed, 4 Sep 2024 07:10:45 -0400 Subject: [PATCH] Fix typescript API return type --- Cargo.toml | 2 +- dist-js/api.d.ts | 6 +++--- dist-js/api.d.ts.map | 2 +- guest-js/api.ts | 6 +++--- package.json | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 11d83f7..d6c9bf9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tauri-plugin-system-info" -version = "2.0.5" +version = "2.0.6" authors = ["Huakun"] edition = "2021" rust-version = "1.70" diff --git a/dist-js/api.d.ts b/dist-js/api.d.ts index be3864e..154d526 100644 --- a/dist-js/api.d.ts +++ b/dist-js/api.d.ts @@ -10,8 +10,8 @@ export declare function name(): Promise; export declare function kernelVersion(): Promise; export declare function osVersion(): Promise; export declare function staticInfo(): Promise; -export declare function components(): Promise; -export declare function cpus(): Promise; +export declare function components(): Promise; +export declare function cpus(): Promise; export declare function cpuCount(): Promise; export declare function cpuInfo(): Promise; export declare function disks(): Promise; @@ -22,5 +22,5 @@ export declare function refreshMemory(): Promise; export declare function refreshCpu(): Promise; export declare function refreshProcesses(): Promise; export declare function debugCommand(): Promise; -export declare function batteries(): Promise; +export declare function batteries(): Promise; //# sourceMappingURL=api.d.ts.map \ No newline at end of file diff --git a/dist-js/api.d.ts.map b/dist-js/api.d.ts.map index 84655b2..00114da 100644 --- a/dist-js/api.d.ts.map +++ b/dist-js/api.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../guest-js/api.ts"],"names":[],"mappings":"AACA,OAAO,EACL,GAAG,EACH,IAAI,EACJ,OAAO,EACP,SAAS,EACT,OAAO,EACP,UAAU,EACV,UAAU,EACV,OAAO,EACP,aAAa,EACb,OAAO,EACR,MAAM,QAAQ,CAAC;AAEhB,wBAAgB,UAAU,IAAI,OAAO,CA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EvC;AAED,wBAAgB,QAAQ,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC,CAE7C;AAED,wBAAgB,SAAS,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC,CAE9C;AAED,wBAAgB,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC,CAE1C;AACD,wBAAgB,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC,CAE7C;AACD,wBAAgB,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC,CAE1C;AACD,wBAAgB,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC,CAEhD;AAED,wBAAgB,YAAY,qBAE3B;AAED,wBAAgB,SAAS,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC,CAE9C"} \ No newline at end of file diff --git a/guest-js/api.ts b/guest-js/api.ts index ddc8d5a..a76068c 100644 --- a/guest-js/api.ts +++ b/guest-js/api.ts @@ -48,11 +48,11 @@ export function staticInfo(): Promise { return invoke("plugin:system-info|static_info"); } // Components -export function components(): Promise { +export function components(): Promise { return invoke("plugin:system-info|components"); } // Cpu -export function cpus(): Promise { +export function cpus(): Promise { return invoke("plugin:system-info|cpus"); } export function cpuCount(): Promise { @@ -91,6 +91,6 @@ export function debugCommand() { return invoke("plugin:system-info|debug"); } -export function batteries(): Promise { +export function batteries(): Promise { return invoke("plugin:system-info|batteries"); } diff --git a/package.json b/package.json index 3c374ac..d79fa41 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tauri-plugin-system-info-api", - "version": "2.0.5", + "version": "2.0.6", "author": "Huakun", "description": "System Info Plugin for Tauri Apps", "repository": {