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

Experimental RFC 436 - import type extending generic appears as "unused" by TS #2191

Closed
cohlar opened this issue Dec 11, 2022 · 1 comment
Closed
Labels

Comments

@cohlar
Copy link

cohlar commented Dec 11, 2022

I've added experimental RFC 436 to my project because I really needed generic components. It works pretty well, but for some reason when my generic extends an imported type, that type appears as "unused" by TypeScript. With eslint, I get the following warning message:

image

I made a public repo to showcase the issue. The generic component is TheWelcome. Please note this repo is shared with #2192 (separate branches).

@johnsoncodehk
Copy link
Member

johnsoncodehk commented Dec 20, 2022

This is ESLint extension report we can't fix, but we will have complete ESLint support in the future, please track DrJume/vue-volar-eslint#1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants