@selfeesas/shared-components 1.3.1 → 1.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -252,7 +252,7 @@ declare const __VLS_component_7: DefineComponent<ExtractPropTypes<__VLS_WithDefa
252
252
  persistKey: string;
253
253
  defaultRowsPerPage: number;
254
254
  useBuiltInPagination: boolean;
255
- fetchDataFn: (params: Record<string, any>) => Promise< ResponseAPI<any>>;
255
+ fetchDataFn: (params?: Record<string, any>) => Promise<any> | void;
256
256
  initialParams: Record<string, any>;
257
257
  filterSelected: Record<string, any>;
258
258
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
@@ -1087,7 +1087,7 @@ declare interface CustomTableProps_2 {
1087
1087
  columnStorageKey?: string;
1088
1088
  onRowDblClick?: (row: any) => void;
1089
1089
  useBuiltInPagination?: boolean;
1090
- fetchDataFn?: (params: Record<string, any>) => Promise<ResponseAPI<any>>;
1090
+ fetchDataFn?: (params?: Record<string, any>) => Promise<any> | void;
1091
1091
  persistKey?: string;
1092
1092
  defaultRowsPerPage?: number;
1093
1093
  initialParams?: Record<string, any>;
@@ -1436,7 +1436,7 @@ export declare interface ExportButtonProps<T = any> {
1436
1436
 
1437
1437
  export declare function formatDate(dateStr: string): string;
1438
1438
 
1439
- export declare function formatDateToDDMMYYYY(date: Date): string;
1439
+ export declare function formatDateToDDMMYYYY(date: Date | string): string;
1440
1440
 
1441
1441
  export declare function getFirstDayOfMonth(year: number, month: number): Date;
1442
1442
 
@@ -1668,13 +1668,6 @@ export declare const ResetFiltersButton: DefineComponent<ExtractPropTypes<__VLS_
1668
1668
  onReset?: (() => any) | undefined;
1669
1669
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
1670
1670
 
1671
- declare interface ResponseAPI<T> {
1672
- results?: T[];
1673
- count?: number;
1674
- next?: string | null;
1675
- previous?: string | null;
1676
- }
1677
-
1678
1671
  export declare interface SelectOption<T = any> {
1679
1672
  label: string;
1680
1673
  value: string | number | T;