vue
vue copied to clipboard
chore(types): Add HTMLInput autocomplete values
What kind of change does this PR introduce? (check at least one)
- [x] Other, please describe:
Does this PR introduce a breaking change? (check one)
- [x] No
The PR fulfills these requirements:
- [x] It's submitted to the
main
branch for v2.x (or to a previous version branch) - [x] When resolving a specific issue, it's referenced in the PR's title (e.g.
fix #xxx[,#xxx]
, where "xxx" is the issue number) - [x] All tests are passing: https://github.com/vuejs/vue/blob/dev/.github/CONTRIBUTING.md#development-setup
- [x] New/updated tests are included
Other information:
This PR extends the jsx types with the list of possible values (https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#inappropriate-for-the-control).
This keeps string
as a valid type so no breaking changes are introduced.
At the same time code editors can provide best auto-complete suggestions so Vue users will get benefits like less misspelling ✨