pull/1989/head
lyswhut 2024-05-17 09:55:02 +08:00
parent aa576fe7db
commit 8a20b773fb
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ let stopingServer = false
let host = 'http://localhost'
const codeTools: {
timeout: NodeJS.Timer | null
timeout: NodeJS.Timeout | null
start: () => void
stop: () => void
} = {

View File

@ -42,7 +42,7 @@ export const filterList = async({ playedList, listId, list, playerMusicInfo, isN
return { filteredList: markRawList(filteredList), playerIndex }
}
let timeout: NodeJS.Timer | null = null
let timeout: NodeJS.Timeout | null = null
const clearTimer = () => {
if (!timeout) return
clearTimeout(timeout)