Watching multiple refs results in a wrong TypeScript assertion in the callback
Version
3.0.5
Reproduction link
Steps to reproduce
If you hover over the returned values un the callback, you'll see a union type (string | number)[] instead of the correct [string, number] which can be inferred from the watched array
What is expected?
The array to be typed correctly
What is actually happening?
A union type is returned
By the way: casting the values as const
works, but that seems like a bit of an escape hatch?
watch([foo, bar] as const, ([newFoo, newBar], [oldFoo, oldBar]) => {