Skip to content

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

Closed
@andrewbranch

Description

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

Expected: Error on cpus()

Actual: No error

Metadata

Metadata

Assignees

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