mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-27 10:20:42 +01:00
fix(useTimer): lint rule changed
This commit is contained in:
@@ -17,7 +17,7 @@ export function useTimer (cb: (...args: unknown[]) => any, interval: number) {
|
|||||||
timer = setTimeout(() => {
|
timer = setTimeout(() => {
|
||||||
timer = null
|
timer = null
|
||||||
startTime.value = null
|
startTime.value = null
|
||||||
// eslint-disable-next-line node/no-callback-literal
|
// eslint-disable-next-line n/no-callback-literal
|
||||||
cb(...args)
|
cb(...args)
|
||||||
}, remaining.value) as unknown as number
|
}, remaining.value) as unknown as number
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user