Skip to content
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

💬 Fix syntax error in defineEmits example #2809

Closed
wants to merge 1 commit into from

Conversation

phillt
Copy link

@phillt phillt commented Apr 18, 2024

Description of Problem

Current documentation of Type-only props/emit declarations has a syntax error in the type parameters of defineEmits. It is missing a semi colon.

image

Proposed Solution

Add missing semi colon:
image

Additional Information

N/A

Copy link

netlify bot commented Apr 18, 2024

Deploy Preview for vuejs ready!

Name Link
🔨 Latest commit 10f700a
🔍 Latest deploy log https://app.netlify.com/sites/vuejs/deploys/662178126e8dc30008a21794
😎 Deploy Preview https://deploy-preview-2809--vuejs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@phillt phillt changed the title 💬 Fix sintax error in defineEmits example 💬 Fix syntax error in defineEmits example Apr 18, 2024
@brc-dd
Copy link
Member

brc-dd commented Apr 18, 2024

semi colon is not required there. It’s valid syntax.

@brc-dd brc-dd closed this Apr 18, 2024
@phillt
Copy link
Author

phillt commented Apr 19, 2024 via email

@brc-dd
Copy link
Member

brc-dd commented Apr 19, 2024

You might not have specified lang="ts" on script block.

@phillt
Copy link
Author

phillt commented Apr 19, 2024

image

@phillt
Copy link
Author

phillt commented Apr 19, 2024

image

@phillt
Copy link
Author

phillt commented Apr 19, 2024

In all fairness, there could be something wrong with my setup.

@phillt
Copy link
Author

phillt commented Apr 19, 2024

If it's on my end, it's not that big of a deal. But I just wanted to make sure the docs were good. Thanks for taking the time to review.

@brc-dd
Copy link
Member

brc-dd commented Apr 19, 2024

You need newline there or comma or semi colon. The docs have newline. They are correct.

@phillt
Copy link
Author

phillt commented Apr 19, 2024

🤦🏻 the error is in me. What a twist. I didn't RTFM well. Thank you.

image

@phillt phillt deleted the patch-1 branch April 19, 2024 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants