-
-
Notifications
You must be signed in to change notification settings - Fork 527
Labels
Description
Vue - Official extension or vue-tsc version
3.2.0
VSCode version
1.107.1
Vue version
3.5.26
TypeScript version
5.9.3
System Info
package.json dependencies
Steps to reproduce
- Run
pnpm i - Run
pnpm typecheck - Observe that type error occurs
error TS2345: Argument of type 'string | number' is not assignable to parameter of type 'number'. Type 'string' is not assignable to type 'number'.
What is expected?
No type errors, downgrade to v3.1.8 to observe that no type errors occur
What is actually happening?
Type error is occurring as the inferred type is "any", and results in v-for inferring index as string | number
Link to minimal reproduction
https://stackblitz.com/edit/github-gzbuzr-kwtq52yd
Any additional comments?
No response
Reactions are currently unavailable