@fattureincloud/fic-design-system 0.7.11 → 0.7.12

Sign up to get free protection for your applications and to get access to all the features.
@@ -63,13 +63,15 @@ export declare enum ColumnDefType {
63
63
  GROUP = "group",
64
64
  ACTION = "action"
65
65
  }
66
- interface ExtraColumnDef<T> extends IdentifiedColumnDef<T, CellProps> {
66
+ interface ExtraColumnDef<T> extends Omit<IdentifiedColumnDef<T, CellProps>, 'header'> {
67
67
  isEditable: boolean;
68
68
  onChange: (text: string, row: Row<T>) => void;
69
+ header?: IdentifiedColumnDef<T, CellProps>['header'] | JSX.Element;
69
70
  }
70
- interface InitalColumnDef<T> extends IdentifiedColumnDef<T, CellProps> {
71
+ interface InitalColumnDef<T> extends Omit<IdentifiedColumnDef<T, CellProps>, 'header'> {
71
72
  isEditable?: false;
72
73
  onChange?: never;
74
+ header?: IdentifiedColumnDef<T, CellProps>['header'] | JSX.Element;
73
75
  }
74
76
  export declare type AccessorColumnDef<T> = InitalColumnDef<T> | ExtraColumnDef<T>;
75
77
  export declare enum ActionType {