diff options
| author | joonhoekim <26rote@gmail.com> | 2025-12-01 15:25:29 +0900 |
|---|---|---|
| committer | joonhoekim <26rote@gmail.com> | 2025-12-01 15:25:29 +0900 |
| commit | 7d2af2af79acd2f674920e8ceeae39fb4a4903e6 (patch) | |
| tree | 860c13246246095a4665826e74d16f1ad6e01f04 /components/client-table-v2/types.ts | |
| parent | ffb8e2e99e1d0c105b1c545ff7ab4d3149ec6c48 (diff) | |
(김준회) v2 누락된 Changes
Diffstat (limited to 'components/client-table-v2/types.ts')
| -rw-r--r-- | components/client-table-v2/types.ts | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/components/client-table-v2/types.ts b/components/client-table-v2/types.ts new file mode 100644 index 00000000..b0752bfa --- /dev/null +++ b/components/client-table-v2/types.ts @@ -0,0 +1,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 +} |
