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

Q: TypeScript 5: importsNotUsedAsValues replaced by ESLint consistent-type-imports #689

Open
sschneider-ihre-pvs opened this issue Sep 13, 2023 · 5 comments

Comments

@sschneider-ihre-pvs
Copy link

What about using the mixed syntax?

https://www.typescriptlang.org/docs/handbook/modules.html#import

import { getResponse, type APIResponseType} from "./api";

@johnnyreilly
Copy link
Owner

Sorry I'm not sure I understand?

@sschneider-ihre-pvs
Copy link
Author

What I meant is, if you just use the regular import with either of type and value, wouldn't that fix the issue with the compiler yelling at you ?

@sschneider-ihre-pvs
Copy link
Author

I mean, instead of pure value import and pure type import

@sschneider-ihre-pvs
Copy link
Author

Or maybe I just don't understand the intention of the article :D

@johnnyreilly
Copy link
Owner

No I do not think that helps - the compiler behaviour changed and so you need to use eslint

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

No branches or pull requests

2 participants