TS 5.5 - Imports used by decorator output are removed #59051
Labels
Bug
A bug in TypeScript
Domain: Declaration Emit
The issue relates to the emission of d.ts files
Fix Available
A PR has been opened for this issue
Recent Regression
This is a new regression just found in the last major/minor version of TypeScript.
Milestone
π Search Terms
remove import compilation decorator
π Version & Regression Information
β― Playground Link
https://github.com/RomainLanz/typescript-output-issue
π» Code
π Actual behavior
When compiled the
DateTime
import is being removed (because it is only used as a type in our file), but the compilation of@column.dateTime()
will use the import.π Expected behavior
The import should be kept like in TypeScript 5.4.
Additional information about the issue
No response
The text was updated successfully, but these errors were encountered: