Skip to content

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

@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
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions