Type search api
This commit is contained in:
parent
d67783df97
commit
e3518b66a4
|
@ -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>
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
export interface UIFetchAPI {
|
||||||
|
getInitialData: () => Promise<void>
|
||||||
|
nextPage: () => Promise<void>
|
||||||
|
}
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue