Skip to content

Importing types doesn't trigger an error in checkJs #22159

Closed
@DanielRosenwasser

Description

@DanielRosenwasser
// ./a.ts
export type Hello = string;
import { Hello } from "./a";

Expected: Error: Types cannot be imported in a JavaScript file.
Actual: No error.

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptDomain: JavaScriptThe issue relates to JavaScript specificallyEffort: CasualGood issue if you're already used to contributing to the codebase. Harder than "good first issue".Fix AvailableA PR has been opened for this issueHelp WantedYou can do this

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions