blog.johnnyreilly.com
blog.johnnyreilly.com copied to clipboard
Q: TypeScript 5: importsNotUsedAsValues replaced by ESLint consistent-type-imports
What about using the mixed syntax?
https://www.typescriptlang.org/docs/handbook/modules.html#import
import { getResponse, type APIResponseType} from "./api";
Sorry I'm not sure I understand?
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 ?
I mean, instead of pure value import and pure type import
Or maybe I just don't understand the intention of the article :D
No I do not think that helps - the compiler behaviour changed and so you need to use eslint