-
-
Notifications
You must be signed in to change notification settings - Fork 392
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
Allow using @ts-expect-error
in Vue templates
#2366
Labels
enhancement
New feature or request
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi all, and thanks again @johnsoncodehk for the amazing Volar.
I have a case on my Nuxt module (https://github.com/victorgarciaesgi/nuxt-typed-router), where I need to test types output of components.
I use
vue-tsc
to scan the fixtures to make sure things break where it should, and things are valid where it should.It works well for ts files because I can use
@ts-expect-error
.But on my case I want to test that the overrided types of
<NuxtLink/>
are working well.The workaround I found for now is to use a .tsx and to test on a
render
function, but that miss the point the types are correctly injected into the global Vue scope.What I can do in tsx:
What I want to do in vue templates:
The text was updated successfully, but these errors were encountered: