Open
Description
Hello,
generated types for SoftDeletes mixin in file build/src/mixin.d.ts
contains many types from BaseModel not only new ones from SoftDelete.
Problematic is types for load and preload:
Your file have these types:
load: import("@adonisjs/lucid/types/model").LucidRowPreload<any>;
preload: import("@adonisjs/lucid/types/model").LucidRowPreload<any>;
but Lucid types from BaseModel are:
load: LucidRowPreload<this>;
preload: LucidRowPreload<this>;
so <this>
instead of <any>
when i use SoftDelete on model and then call .load() there is loader with type any and many problem with it:
same code without SoftDelete mixin:
there can be many more problems with types in this mixin.
should it contains only methods which mixin is create/override, shouldn't it? and do not touch what is not changing?
for now it is very complicated to use load with models with SoftDeleted