error TS1238: Unable to resolve signature of class decorator when called as an expression.
Argument of type 'typeof SoftDeletableBaseEntity' is not assignable to parameter of type 'Type<SoftDeletableBaseEntity>'.
48 @SoftDeletable(() => SoftDeletableBaseEntity, "deletedAt", () => new Date())
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error TS2322: Type 'typeof SoftDeletableBaseEntity' is not assignable to type 'Type<SoftDeletableBaseEntity>'.
Cannot assign an abstract constructor type to a non-abstract constructor type.
48 @SoftDeletable(() => SoftDeletableBaseEntity, "deletedAt", () => new Date())
I think this is not support inheritance. is it right?
Above code, We can see errors like this.
https://github.com/TheNightmareX/mikro-orm-soft-delete/blob/main/src/decorator.ts#L12 this line use 'new' keyword of T. But If T is abstract class, then it can not use 'new' keyword.
So I think @SoftDeletable decorator can not used on abstract class. 'm assuming you don't use this decorator for abstract classes?