fix: Fix generici recordspage quando si usa una recordpage
This commit is contained in:
parent
41a6581ab9
commit
6dcb3e5248
|
@ -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>;
|
||||||
|
|
Loading…
Reference in New Issue