diff --git a/src/components/common/AlertComponent.vue b/src/components/common/AlertComponent.vue index 40a5c8d..c6a9f47 100644 --- a/src/components/common/AlertComponent.vue +++ b/src/components/common/AlertComponent.vue @@ -69,7 +69,7 @@ const alertIcons = { info: Info } -let intervalId: number +let intervalId: ReturnType onMounted(() => { intervalId = setInterval(() => { diff --git a/src/utils/common.ts b/src/utils/common.ts index 9abd920..cd5c150 100644 --- a/src/utils/common.ts +++ b/src/utils/common.ts @@ -114,7 +114,7 @@ export function debounce unknown>( func: T, wait: number ): (...args: Parameters) => void { - let timeout: number | null = null + let timeout: ReturnType | null = null return (...args: Parameters) => { if (timeout) {