-
Notifications
You must be signed in to change notification settings - Fork 4.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeScript documentation not updated for vue 3.3 typed slots #2371
Comments
The docs mention it here: https://vuejs.org/api/sfc-script-setup.html#defineslots But might be good to create a cross reference at the places you mentioned... |
Yeah, after searching a bit more I see the options API version is also available at https://vuejs.org/api/options-rendering.html#slots but neither this one nor the one you mentioned comes near the top when you use the search and search for "slots", or is linked to in those pages |
what about example with no props ? |
also looks like current code is mistake
should be:
or? |
Both are valid syntax. Please refer to PR for more details. Use |
vuejs/core#7982 introduced typing of slots, and it was announced in the release post, however I can't find anything in the docs on how to use this new feature, not in the slots documentation neither in the TypeScript (composition / options) sections, the only information I found on how to use this new feature was in the PR itself.
It would be nice to get this added to the docs
The text was updated successfully, but these errors were encountered: