123
This commit is contained in:
5
components/BaseTable/helpers.ts
Normal file
5
components/BaseTable/helpers.ts
Normal file
@ -0,0 +1,5 @@
|
||||
// helpers.ts (или рядом)
|
||||
import type { DataTableProps } from 'mantine-datatable';
|
||||
|
||||
// Берём ИМЕННО ту ветку union, где есть `columns`
|
||||
export type ColumnsMode<T> = Extract<DataTableProps<T>, { columns: unknown }>;
|
||||
Reference in New Issue
Block a user