fix: fixed TS errors

This commit is contained in:
Pierre Tellier
2025-02-08 18:49:22 +01:00
parent b228b78e17
commit b5c9b40672
2 changed files with 3 additions and 4 deletions

View File

@ -1,5 +1,4 @@
import {ref} from "vue";
enum color {Red, Yellow, Blue, green}
function addNewMessage(errorMessage: string, type?: color, timeout?: number){
@ -15,6 +14,6 @@ function addNewMessage(errorMessage: string, type?: color, timeout?: number){
setTimeout(() => errorList.value.slice(0, 1), timeout)
}
const errorList = ref([])
const errorList: any= ref([])
export {addNewMessage, errorList, color}