Drop support for Vue 3.3 slots short definition #3116
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue: #2758
In order to support the slots short definition, we must have a
ToTemplateSlots
type conversion helper to convert the short definition into a legal slots type, but this makes it impossible to handle the generic type.This is a Volar limitation, we temporarily removed
ToTemplateSlots
until we find a solution, you must fully define the slots type for now:TS playground:
https://www.typescriptlang.org/play?#code/MYGwhgzhAEByD2AXA6vATgawDwBUB80A3gFDRnTDwB2EiaArsIugBQCURp53iAngA4BTaDng5BAW37hEggMogkEXAQC8RaAG0A0tACWVaBkG94AMxEBdAPwAuONVj0Q4AEYhBuHZYKCAHrJUACYwLAB0EWBoAOYQ9mBUvJqWHKoECbzQ1iLe0PYs-Gjw-HE52inQadAZ0AC+ANxc3GQeiNAQiogQAIT2ouJSMvKdyiTN41q6BkYm5iLVMLr+gSHtdAbRWdAABsCCLrYAJITatdt50FSCAG6CaJb2hNDXYCD0gn25DU3NtdAAZJwJs0goIzGBnIh7AAlQSUNBBLC0NAbAA01USeEawNqWJ+3EoNDaHSQlXaIzCoPBkMaAEhaXwhNAAJIQABqrz0QQUpPUjMEcxJbWWgmCoQiYSisXiiVS6USWzo7wu4JAEEE2ImAHotdwAHrWH61YjG4igSAwVCYFRA8iE5GMZhodi28atclKXqu4GTfSGYymCw4BbQJYBUWrZEbLa7fYgI4nM4XK63e75AD6j2er3en3KdTlGN4mvGf0BYx9ZCpEJAUOgLEz0Fh8MRUao0XRGTwhYyJd+fYJ1FoHra6iFEEpYJriDpDIEwlZHJAXJ5o+g-MFnWgIrF9YlUtKGR7CuySuE9lV6oH5B1+sN3GNxqAA