Closed as not planned
Description
π Search Terms
"verbatimModuleSyntax", "enum"
π Version & Regression Information
- This is the behavior in every version I tried, and I reviewed the FAQ for entries about "verbatimModuleSyntax" (there wasn't any) and "enums".
β― Playground Link
π» Code
// @verbatimModuleSyntax: true
// @filename: file-with-export.ts
export enum Words {
A = "A",
B = "B",
}
export type Word = string;
// @filename: index.ts
import { Words, Word } from "./file-with-export"
let a: Word;
let anyWord: Words;
π Actual behavior
The import of the Words
enum doesn't show any errors.
π Expected behavior
The import of the Words
enum should show a 1484 error.
Additional information about the issue
The mentioned import should show an error because it's being used only as a type and the "verbatimModuleSyntax" flag is enabled.