aboutsummaryrefslogtreecommitdiff
path: root/src-tauri
diff options
context:
space:
mode:
authorGeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com>2023-08-03 23:05:34 +0200
committerGitHub <noreply@github.com>2023-08-03 23:05:34 +0200
commit097ecc3d4896c224a73e76cb80be1dd6a63d82f3 (patch)
tree1718e64a427c340bf5be8865fbb3fb7c7a656b74 /src-tauri
parent62016e569f191e2ddbb59a3a5cda5053f1c6f1e4 (diff)
downloadFlightCore-097ecc3d4896c224a73e76cb80be1dd6a63d82f3.tar.gz
FlightCore-097ecc3d4896c224a73e76cb80be1dd6a63d82f3.zip
fix: Move leftover type definition to auto-generated from Rust (#450)
* chore: Delete leftover type definition file * feat: Generate InstallType from Rust enum * fix: Use new generated struct
Diffstat (limited to 'src-tauri')
-rw-r--r--src-tauri/bindings/InstallType.ts3
-rw-r--r--src-tauri/src/main.rs3
2 files changed, 5 insertions, 1 deletions
diff --git a/src-tauri/bindings/InstallType.ts b/src-tauri/bindings/InstallType.ts
new file mode 100644
index 00000000..2a0f9a7f
--- /dev/null
+++ b/src-tauri/bindings/InstallType.ts
@@ -0,0 +1,3 @@
+// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
+
+export type InstallType = "STEAM" | "ORIGIN" | "EAPLAY" | "UNKNOWN"; \ No newline at end of file
diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs
index 9e812683..a7827a44 100644
--- a/src-tauri/src/main.rs
+++ b/src-tauri/src/main.rs
@@ -457,7 +457,8 @@ mod platform_specific;
#[cfg(target_os = "linux")]
use platform_specific::linux;
-#[derive(Serialize, Deserialize, Debug, Clone)]
+#[derive(Serialize, Deserialize, Debug, Clone, TS)]
+#[ts(export)]
pub enum InstallType {
STEAM,
ORIGIN,