-
-
Notifications
You must be signed in to change notification settings - Fork 497
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
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:
import {NuxtLink} from '@typed-router';
function render() {
return (
{/* @ts-expect-error */}
<NuxtLink to={{ name: 'user-id', params: { foo: 'bar' } }}></NuxtLink>;
)
}What I want to do in vue templates:
leo-buneev, so1ve, xiaoxiangmoe, ExEr7um, nd0ut and 1 more
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request
