diff options
Diffstat (limited to 'components/data-table/data-table-view-options.tsx')
| -rw-r--r-- | components/data-table/data-table-view-options.tsx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/components/data-table/data-table-view-options.tsx b/components/data-table/data-table-view-options.tsx index 6120fff9..c55617ec 100644 --- a/components/data-table/data-table-view-options.tsx +++ b/components/data-table/data-table-view-options.tsx @@ -1,7 +1,7 @@ "use client" import * as React from "react" -import { type Table } from "@tanstack/react-table" +import { RowData, type Table } from "@tanstack/react-table" import { Check, ChevronsUpDown, @@ -41,12 +41,12 @@ interface DataTableViewOptionsProps<TData> { table: Table<TData> } -declare module "@tanstack/react-table" { - interface ColumnMeta<TData, TValue> { +declare module "@tanstack/table-core" { + interface ColumnMeta<TData extends RowData, TValue> { excelHeader?: string group?: string type?: string - // or whatever other fields you actually use + // ...anything else you want } } /** |
