aboutsummaryrefslogtreecommitdiff
path: root/src-vue/src/plugins/store.ts
diff options
context:
space:
mode:
authorRemy Raes <raes.remy@gmail.com>2022-10-03 18:37:26 +0200
committerRemy Raes <raes.remy@gmail.com>2022-10-03 18:37:26 +0200
commitc009cbe313e29b660e8776fa2c4d82eb5195edbc (patch)
treed145503e029090496cd68051f52f45028ae548e5 /src-vue/src/plugins/store.ts
parentc508c62e8c098388cbcae942182c4909810beb70 (diff)
downloadFlightCore-c009cbe313e29b660e8776fa2c4d82eb5195edbc.tar.gz
FlightCore-c009cbe313e29b660e8776fa2c4d82eb5195edbc.zip
fix: address _initializeApp result typing issue
Diffstat (limited to 'src-vue/src/plugins/store.ts')
-rw-r--r--src-vue/src/plugins/store.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/src-vue/src/plugins/store.ts b/src-vue/src/plugins/store.ts
index 62b1f887..bcca7701 100644
--- a/src-vue/src/plugins/store.ts
+++ b/src-vue/src/plugins/store.ts
@@ -131,15 +131,15 @@ export const store = createStore({
* It invokes all Rust methods that are needed to initialize UI.
*/
async function _initializeApp(state: any) {
- // @ts-ignore
- const result: GameInstall = await invoke("find_game_install_location_caller")
+ const result = await invoke("find_game_install_location_caller")
.catch((err) => {
// Gamepath not found or other error
console.error(err);
alert(err);
});
- state.game_path = result.game_path;
- state.install_type = result.install_type as InstallType;
+ const typedResult: GameInstall = result as GameInstall;
+ state.game_path = typedResult.game_path;
+ state.install_type = typedResult.install_type;
// Check installed Northstar version if found
await _get_northstar_version_number(state);