Closed
Description
π Search Terms
import, declaration, empty
π Version & Regression Information
- Bisects to Replace addUndefined in serializeTypeForDeclaration with the actual declarationΒ #58085 by @weswigham
β― 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.