Type tablefetch

This commit is contained in:
Adria Navarro 2025-01-02 10:23:39 +01:00
parent ecfc248e60
commit d7cfd51caf
3 changed files with 19 additions and 4 deletions

View File

@ -322,10 +322,10 @@ export default abstract class DataFetch {
abstract getData(): Promise<{
rows: UIRow[]
info: any
info?: any
hasNextPage: boolean
cursor: any
error: any
cursor?: any
error?: any
}>
/**

View File

@ -14,7 +14,7 @@ export default class TableFetch extends DataFetch {
async getData() {
const { datasource, limit, sortColumn, sortOrder, sortType, paginate } =
this.options
const { tableId } = datasource
const { tableId } = datasource!
const { cursor, query } = get(this.store)
// Search table

View File

@ -1,6 +1,8 @@
import {
Row,
SearchFilters,
SortOrder,
SortType,
Table,
UIDatasource,
UILegacyFilter,
@ -15,6 +17,19 @@ export interface UIFetchAPI {
loading: any
loaded: boolean
searchTable(
tableId: string,
arg1: {
query: SearchFilters | null
limit: number
sort: string | null
sortOrder: string
sortType: SortType | null
paginate: boolean
bookmark: null
}
): any
resetKey: string | null
error: any