Clarify the cases using number, bigint or symbol as key
Vue 2 doc had add symbol for key api in version 2.5.12
In Vue 3 doc, key is still number | string.
- Is
symboldeprecated? Or just not implement yet? - Will
bigintbe supported? - Is
1treated as same key to"1"? Whether is or not, is it intended?
I've opened an issue against the main repo to get clarification about what the expected behaviour is:
https://github.com/vuejs/vue-next/issues/2633
I believe the TS definitions currently only allow number | string but, in my opinion, that's overly restrictive. If the TS definitions are updated then the docs can follow.
I'm not sure that's a bug or feature, so I didn't ask in vue-next. I even have no idea it belong to Vue 2 / 3 / 2&3...
Problem more than restrictive is that, if support all these types, they will be use as it is, or stringify any type (except symbol) to string firstly?
I can study the soure, but I'm not sure that's intended and stable.