diff --git a/src/stores/maintenance-profiles-store.ts b/src/stores/maintenance-profiles-store.ts index 80ae1df..32baef1 100644 --- a/src/stores/maintenance-profiles-store.ts +++ b/src/stores/maintenance-profiles-store.ts @@ -1,28 +1,23 @@ -import { writable } from "svelte/store"; +import { type Writable, writable } from "svelte/store"; import MaintenanceProfile from "$entities/MaintenanceProfile"; import MaintenanceSettings from "$lib/extension/settings/MaintenanceSettings"; /** * Store for working with maintenance profiles in the Svelte popup. - * - * @type {import('svelte/store').Writable} */ -export const maintenanceProfilesStore = writable([]); +export const maintenanceProfilesStore: Writable = writable([]); /** * Store for the active maintenance profile ID. - * - * @type {import('svelte/store').Writable} */ -export const activeProfileStore = writable(null); +export const activeProfileStore: Writable = writable(null); const maintenanceSettings = new MaintenanceSettings(); /** * Active profile ID stored locally. Used to reset active profile once the existing profile was removed. - * @type {string|null} */ -let lastActiveProfileId = null; +let lastActiveProfileId: string|null = null; Promise.allSettled([ // Read the initial values from the storages first