SerKo @serko.dev · Dec 11

🧵 1/2 in @vuejs.org language tools latest update, "v-for" now treats keys with "number" type the same way TypeScript and Vue.js runtime does, keys are automatically typed as string. Better consistency, fewer surprises. 🚀

3 likes 1 replies

?

Replies

SerKo · Dec 11

🧵 2/2 (PR below) and that’s not all! we also support Template Literal Types in "v-for", your union of numeric literal types of key will be automatically "stringified" 🪄 (1 | 2 → "1" | "2") thanks Johnson for the idea