Closed
Description
Bug Report
π Search Terms
import type javascript error
π Version & Regression Information
- This is the behavior in every version I tried
β― Playground Link
Playground link with relevant code
π» Code
// Not flagged
import { type ComponentType } from 'react';
// Flagged
import type { ReactNode } from 'react';
π Actual behavior
import { type X }
is not flagged as "can only be used in TypeScript files" but crashes at runtime
π Expected behavior
It should be an error