Post

🧡 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. πŸš€

🧡 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

No replies yet.