blob: b0752bfa7496f976ef4138dc73635c1a434e3048 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
import { ColumnDef, RowData } from "@tanstack/react-table"
export interface ClientTableColumnMeta {
filterType?: "text" | "select" | "boolean"
filterOptions?: { label: string; value: string }[]
}
// Use this type instead of generic ColumnDef to get intellisense for 'meta'
export type ClientTableColumnDef<TData extends RowData, TValue = unknown> = ColumnDef<TData, TValue> & {
meta?: ClientTableColumnMeta
}
|