We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
import type javascript error
Playground link with relevant code
// Not flagged import { type ComponentType } from 'react'; // Flagged import type { ReactNode } from 'react';
import { type X } is not flagged as "can only be used in TypeScript files" but crashes at runtime
import { type X }
It should be an error
Bug Report
π Search Terms
import type javascript error
π Version & Regression Information
β― Playground Link
Playground link with relevant code
π» Code
π 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