fix: Fix generici recordspage quando si usa una recordpage

This commit is contained in:
Maicol Battistini 2023-05-16 13:47:10 +02:00
parent 41a6581ab9
commit 6dcb3e5248
No known key found for this signature in database
1 changed files with 5 additions and 1 deletions

View File

@ -40,7 +40,11 @@ type DeleteRecordDialogVnode<M extends Model<any, any>, D extends DeleteRecordDi
/** /**
* @abstract * @abstract
*/ */
export default abstract class RecordsPage<M extends Model<any, any>, D extends AddEditRecordDialog<M>, DRD extends DeleteRecordDialog<M> = DeleteRecordDialog<M>> extends Page { export default abstract class RecordsPage<
M extends Model<any, any>,
D extends AddEditRecordDialog<M> = AddEditRecordDialog<M>,
DRD extends DeleteRecordDialog<M> = DeleteRecordDialog<M>
> extends Page {
abstract modelType: Class<M> & typeof Model<any, any>; abstract modelType: Class<M> & typeof Model<any, any>;
recordDialogType?: Class<D>; recordDialogType?: Class<D>;
deleteRecordDialogType?: Class<DRD>; deleteRecordDialogType?: Class<DRD>;