Type tablefetch
This commit is contained in:
parent
ecfc248e60
commit
d7cfd51caf
|
@ -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
|
||||
}>
|
||||
|
||||
/**
|
||||
|
|
|
@ -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
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue