Skip to content

Type-only import can be used as value after 'import =' #36466

Description

import type * as os from 'os';
import cpus = os.cpus;
cpus();

Expected: Error on cpus()

Actual: No error

Metadata

Metadata

Labels

BugA bug in TypeScriptFix AvailableA PR has been opened for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions