From 35f4bb138554d300757420261d70d1a6bf6b9cc0 Mon Sep 17 00:00:00 2001 From: Dominik Pschenitschni Date: Mon, 17 Oct 2022 13:54:38 +0200 Subject: [PATCH] fix: setModuleLoading LoadingState type --- src/stores/helper.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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