Skip to content

vue-tsc emit extra event hints on VSCode which i don't need #1496

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

Closed
Jackie1210 opened this issue Jun 22, 2022 · 1 comment
Closed

vue-tsc emit extra event hints on VSCode which i don't need #1496

Jackie1210 opened this issue Jun 22, 2022 · 1 comment
Labels
question Further information is requested

Comments

@Jackie1210
Copy link

Jackie1210 commented Jun 22, 2022

what issue i met

i was using script setup to build a vue UI lib

image

when i use this component it will have extra hints which i didn't declare

image

how i emit type declartion files

image

vue-tsc ^0.38.1
vue ^3.2.37

@Jackie1210 Jackie1210 changed the title vue-tsc emit some event which i don't need vue-tsc emit extra event hints which i don't need Jun 22, 2022
@Jackie1210 Jackie1210 changed the title vue-tsc emit extra event hints which i don't need vue-tsc emit extra event hints on VSCode which i don't need Jun 22, 2022
@sethidden
Copy link
Contributor

sethidden commented Jun 22, 2022

Seems like those just come from Vue itself and are valid events, even if you haven't defined them explicitly.

https://github.com/vuejs/core/blob/main/packages/runtime-core/src/vnode.ts#L103

@johnsoncodehk johnsoncodehk added the question Further information is requested label Sep 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants