Skip to content
Snippets Groups Projects
Commit 86652919 authored by William Arsac's avatar William Arsac Committed by Florent POITTEVIN
Browse files

feat: correct DataTableColumns typing

parent 7aa95d91
No related branches found
No related tags found
No related merge requests found
......@@ -11,7 +11,7 @@ import {
} from "solidify-frontend";
export interface DataTableColumns<TResource extends BaseResourceType = any> {
field: keyof TResource | string;
field: string; // keyof TResource
header: string;
tooltip?: (value: string) => string | undefined;
type?: FieldTypeEnum;
......@@ -23,8 +23,8 @@ export interface DataTableColumns<TResource extends BaseResourceType = any> {
isSortable?: boolean;
isFilterable?: boolean;
searchableSingleSelectSort?: Sort;
filterableField?: keyof TResource | string;
sortableField?: keyof TResource | string;
filterableField?: string; // keyof TResource
sortableField?: string; // keyof TResource
resourceNameSpace?: ResourceNameSpace;
resourceState?: ResourceState<any, any>;
component?: DataTableComponentEnum;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment