You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One can provide a function with arguments to useTimeoutFn and then use the arguments in the start function returned.
Everything works like a charm but typescript isn't happy with that at all due to Stoppable being typed wrongly. It complains that start function expects 0 arguments.
Also, as seen on the screenshot, user can't specify arguments' types as typescript complains about string not being compatible with unknown
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a VueUse issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/core instead.
Check that this is a concrete bug. For Q&A open a GitHub Discussion.
Describe the bug
One can provide a function with arguments to
useTimeoutFn
and then use the arguments in thestart
function returned.Everything works like a charm but typescript isn't happy with that at all due to
Stoppable
being typed wrongly. It complains thatstart
function expects 0 arguments.Also, as seen on the screenshot, user can't specify arguments' types as typescript complains about
string
not being compatible withunknown
Reproduction
https://stackblitz.com/edit/vitejs-vite-izdzrq/?file=src%2FApp.vue
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: