feat: fix

This commit is contained in:
2024-11-27 15:44:36 +03:00
parent 431bc35d8b
commit 886eef4c0d
4 changed files with 7 additions and 5 deletions

View File

@@ -2,7 +2,7 @@ import { RefObject } from "react";
import { BaseTableRef } from "../components/BaseTable/BaseTable.tsx";
import { MRT_RowData } from "mantine-react-table";
export interface CRUDTableProps<T extends MRT_RowData, C = void> {
export interface CRUDTableProps<T extends MRT_RowData, C extends MRT_RowData = T> {
items: T[];
onCreate?: (item: C | T) => void;
onDelete?: (item: T) => void;