Subscribe on changes!

Ref of generically typed array in composable gives TS error when using default value

avatar
Dec 5th 2022

Vue version

3.2.45

Link to minimal reproduction

https://stackblitz.com/edit/vitejs-vite-zgkrrx?file=package.json,tsconfig-base.json,tsconfig.json,src%2Fcomposables%2FuseFilter.ts&terminal=dev

Steps to reproduce

See composable/useFilter.ts , hover over error

What is expected?

See composable/useFilter.ts , hover over error

What is actually happening?

Using generically typed composable, when using generic type in an array. (with default value)

System Info

No response

Any additional comments?

No response

avatar
Dec 5th 2022

duplicate of #7278