diff --git a/src/stores/helper.ts b/src/stores/helper.ts index d07464858..ea9dff6f2 100644 --- a/src/stores/helper.ts +++ b/src/stores/helper.ts @@ -1,12 +1,10 @@ -import type { StoreDefinition } from 'pinia' - export interface LoadingState { isLoading: boolean } const LOADING_TIMEOUT = 100 -export const setModuleLoading = >(store: LoadingStore, loadFunc : ((isLoading: boolean) => void) | null = null) => { +export const setModuleLoading = (store: Store, loadFunc : ((isLoading: boolean) => void) | null = null) => { const timeout = setTimeout(() => { if (loadFunc === null) { store.isLoading = true