Skip to content

[nightly][regression] Some emitted imports are syntactically invalidΒ #58159

Closed
@MichaelMitchell-at

Description

@MichaelMitchell-at

πŸ”Ž Search Terms

import, declaration, empty

πŸ•— Version & Regression Information

⏯ Playground Link

No response

πŸ’» Code

n/a

πŸ™ Actual behavior

A type referenced in a declaration file is sometimes emitted as import().SomeType and sometimes as import(<actual_import_path>).SomeType

πŸ™‚ Expected behavior

The type is always emitted as import(<actual_import_path>).SomeType

Additional information about the issue

It's not easy for me to provide a self-contained reproduction, as it involves the composition of a lot of our private code, but I figure since it's already known which PR introduced the regression, it should hopefully be easier for someone on the TS team to spot how an import could possibly be empty. I can patch speculative fixes or add some debug logs if requested.

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