Skip to content

Commit

Permalink
Update src/tables/table.ts
Browse files Browse the repository at this point in the history
Co-authored-by: RomanTsukanov <[email protected]>
  • Loading branch information
tsv2013 and RomanTsukanov authored May 20, 2024
1 parent 42cf7f3 commit fde6be7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tables/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export interface ITableOptions {
}

export type TabulatorFilter = { field: string, type: string, value: any };
export type TabulatorSorter = { field: string, dir: "" | "asc" | "desc" };
export type TabulatorSortOrder = { field: string, direction: undefined | "asc" | "desc" };
export type GetPaginatedDataCallbackFunction = (params: { filter?: Array<TabulatorFilter>, sorting?: Array<TabulatorSorter>, limit?: number, offset?: number, callback?: (response: { data: Array<Object>, total: number, error?: any }) => void }) => void;
export type GetPaginatedDataPromiseFunction = (params: { filter?: Array<TabulatorFilter>, sorting?: Array<TabulatorSorter>, limit?: number, offset?: number }) => Promise<{ data: Array<Object>, total: number, error?: any }>;
export type GetPaginatedDataFunction = GetPaginatedDataCallbackFunction | GetPaginatedDataPromiseFunction;
Expand Down

0 comments on commit fde6be7

Please sign in to comment.