From e0c356701ffc83394d067c3501eeab52e9810ed6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carl-Gerhard=20Lindesva=CC=88rd?= Date: Wed, 14 May 2025 09:20:34 +0200 Subject: [PATCH] fix(dashboard): add typing for data table meta --- apps/dashboard/src/components/data-table.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/apps/dashboard/src/components/data-table.tsx b/apps/dashboard/src/components/data-table.tsx index 3733dd2a..c4b106e2 100644 --- a/apps/dashboard/src/components/data-table.tsx +++ b/apps/dashboard/src/components/data-table.tsx @@ -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 { data: TData[]; } +declare module '@tanstack/react-table' { + // eslint-disable-next-line + interface ColumnMeta { + className?: string; + } +} + export const ACTIONS = '__actions__'; export function TableButtons({