import { DateTime } from "luxon";
import { column } from "@adonisjs/lucid/orm";
class User {
@column.dateTime()
declare createdAt: DateTime;
}
π 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.
π 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