Type search api

This commit is contained in:
Adria Navarro 2024-12-27 18:05:23 +01:00
parent d67783df97
commit e3518b66a4
3 changed files with 7 additions and 2 deletions

View File

@ -10,7 +10,7 @@ import {
import { tick } from "svelte" import { tick } from "svelte"
import { Helpers } from "@budibase/bbui" import { Helpers } from "@budibase/bbui"
import { sleep } from "../../../utils/utils" import { sleep } from "../../../utils/utils"
import { FieldType, Row, UIRow } from "@budibase/types" import { FieldType, Row, UIFetchAPI, UIRow } from "@budibase/types"
import { getRelatedTableValues } from "../../../utils" import { getRelatedTableValues } from "../../../utils"
import { Store as StoreContext } from "." import { Store as StoreContext } from "."
@ -20,7 +20,7 @@ interface IndexedUIRow extends UIRow {
interface RowStore { interface RowStore {
rows: Writable<UIRow[]> rows: Writable<UIRow[]>
fetch: Writable<any> fetch: Writable<UIFetchAPI | null>
loaded: Writable<boolean> loaded: Writable<boolean>
refreshing: Writable<boolean> refreshing: Writable<boolean>
loading: Writable<boolean> loading: Writable<boolean>

View File

@ -0,0 +1,4 @@
export interface UIFetchAPI {
getInitialData: () => Promise<void>
nextPage: () => Promise<void>
}

View File

@ -5,3 +5,4 @@ export * from "./view"
export * from "./user" export * from "./user"
export * from "./filters" export * from "./filters"
export * from "./rows" export * from "./rows"
export * from "./fetch"