Fix types
This commit is contained in:
parent
4f8f23c1b3
commit
9c686cf7ca
|
@ -1,4 +1,10 @@
|
||||||
import { Row, UIDatasource } from "@budibase/types"
|
import {
|
||||||
|
Row,
|
||||||
|
SortOrder,
|
||||||
|
UIDatasource,
|
||||||
|
UILegacyFilter,
|
||||||
|
UISearchFilter,
|
||||||
|
} from "@budibase/types"
|
||||||
|
|
||||||
export interface UIFetchAPI {
|
export interface UIFetchAPI {
|
||||||
definition: UIDatasource
|
definition: UIDatasource
|
||||||
|
@ -14,4 +20,19 @@ export interface UIFetchAPI {
|
||||||
nextPage: () => Promise<void>
|
nextPage: () => Promise<void>
|
||||||
|
|
||||||
rows: Row[]
|
rows: Row[]
|
||||||
|
|
||||||
|
options?: {
|
||||||
|
datasource?: {
|
||||||
|
tableId: string
|
||||||
|
id: string
|
||||||
|
}
|
||||||
|
}
|
||||||
|
update: ({
|
||||||
|
sortOrder,
|
||||||
|
sortColumn,
|
||||||
|
}: {
|
||||||
|
sortOrder?: SortOrder
|
||||||
|
sortColumn?: string
|
||||||
|
filter?: UILegacyFilter[] | UISearchFilter
|
||||||
|
}) => any
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue