verbatimModuleSyntax 를 켜면 type 없는 import 는 출력에 그대로 남는다 — 타입만 가져올 땐 import type 으로 표시해야 한다(안 하면 TS1484).1
import type { A } from 'a'
- GitHub - privatenumber/fix-verbatim-module-syntax: CLI tool to auto-fix verbatimModuleSyntax errors
- TypeScript: TSConfig Reference - Docs on every TSConfig option
- Exploring TypeScript 5 features: Smaller, simpler, faster - LogRocket Blog
Footnotes
-
아래 TSConfig Reference 의
verbatimModuleSyntax: “any imports or exports without atypemodifier are left around. Anything that uses thetypemodifier is dropped entirely.” ↩