fix(dashboard): add typing for data table meta
This commit is contained in:
@@ -6,7 +6,7 @@ import {
|
||||
getCoreRowModel,
|
||||
useReactTable,
|
||||
} from '@tanstack/react-table';
|
||||
import type { ColumnDef } from '@tanstack/react-table';
|
||||
import type { ColumnDef, RowData } from '@tanstack/react-table';
|
||||
|
||||
import { Grid, GridBody, GridCell, GridHeader, GridRow } from './grid-table';
|
||||
|
||||
@@ -15,6 +15,13 @@ interface DataTableProps<TData> {
|
||||
data: TData[];
|
||||
}
|
||||
|
||||
declare module '@tanstack/react-table' {
|
||||
// eslint-disable-next-line
|
||||
interface ColumnMeta<TData extends RowData, TValue> {
|
||||
className?: string;
|
||||
}
|
||||
}
|
||||
|
||||
export const ACTIONS = '__actions__';
|
||||
|
||||
export function TableButtons({
|
||||
|
||||
Reference in New Issue
Block a user