Fix types

This commit is contained in:
Adria Navarro 2024-12-30 22:47:27 +01:00
parent 4f8f23c1b3
commit 9c686cf7ca
1 changed files with 22 additions and 1 deletions

View File

@ -1,4 +1,10 @@
import { Row, UIDatasource } from "@budibase/types"
import {
Row,
SortOrder,
UIDatasource,
UILegacyFilter,
UISearchFilter,
} from "@budibase/types"
export interface UIFetchAPI {
definition: UIDatasource
@ -14,4 +20,19 @@ export interface UIFetchAPI {
nextPage: () => Promise<void>
rows: Row[]
options?: {
datasource?: {
tableId: string
id: string
}
}
update: ({
sortOrder,
sortColumn,
}: {
sortOrder?: SortOrder
sortColumn?: string
filter?: UILegacyFilter[] | UISearchFilter
}) => any
}