diff options
author | Alystrasz <contact@remyraes.com> | 2022-10-04 08:05:53 +0200 |
---|---|---|
committer | Alystrasz <contact@remyraes.com> | 2022-10-04 08:05:53 +0200 |
commit | c284e9aafc369784fa58cd0dc6a536c4bf2e1a84 (patch) | |
tree | 6ed3e6a1fba9d15e444e6295bc6851b1308f79f6 /src-vue/src/plugins/store.ts | |
parent | ba53e308a0908d0852e23d86efc66acf837485e4 (diff) | |
download | FlightCore-c284e9aafc369784fa58cd0dc6a536c4bf2e1a84.tar.gz FlightCore-c284e9aafc369784fa58cd0dc6a536c4bf2e1a84.zip |
refactor: rename store type
Diffstat (limited to 'src-vue/src/plugins/store.ts')
-rw-r--r-- | src-vue/src/plugins/store.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src-vue/src/plugins/store.ts b/src-vue/src/plugins/store.ts index 7f649a51..9d1bd89f 100644 --- a/src-vue/src/plugins/store.ts +++ b/src-vue/src/plugins/store.ts @@ -9,7 +9,7 @@ import { ElNotification } from 'element-plus'; import { NorthstarState } from '../utils/NorthstarState'; -export type Store = { +export interface FlightCoreStore { current_tab: Tabs, developer_mode: boolean, game_path: string, @@ -23,13 +23,13 @@ export type Store = { origin_is_running: boolean } -export const store = createStore({ - state () { +export const store = createStore<FlightCoreStore>({ + state (): FlightCoreStore { return { current_tab: Tabs.PLAY, developer_mode: false, - game_path: undefined, - install_type: undefined, + game_path: undefined as unknown as string, + install_type: undefined as unknown as InstallType, installed_northstar_version: "", northstar_state: NorthstarState.GAME_NOT_FOUND, |