Type and export
This commit is contained in:
parent
f1680f4941
commit
85ab9e3ce3
|
@ -435,7 +435,7 @@ export default abstract class BaseDataFetch<
|
|||
* Resets the data set and updates options
|
||||
* @param newOptions any new options
|
||||
*/
|
||||
async update(newOptions: any) {
|
||||
async update(newOptions: DataFetchOptions<never>) {
|
||||
// Check if any settings have actually changed
|
||||
let refresh = false
|
||||
for (const [key, value] of Object.entries(newOptions || {})) {
|
||||
|
|
|
@ -14,6 +14,7 @@ import { APIClient } from "../api/types"
|
|||
import { Table, ViewV2Enriched } from "@budibase/types"
|
||||
|
||||
export type DataFetchType = keyof typeof DataFetchMap
|
||||
export type { DataFetchOptions } from "./DataFetch"
|
||||
|
||||
export const DataFetchMap = {
|
||||
table: TableFetch,
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
export { createAPIClient } from "./api"
|
||||
export type { APIClient } from "./api"
|
||||
export { fetchData, DataFetchMap } from "./fetch"
|
||||
export type { DataFetchType } from "./fetch"
|
||||
export type { DataFetchType, DataFetchOptions } from "./fetch"
|
||||
export * as Constants from "./constants"
|
||||
export * from "./stores"
|
||||
export * from "./utils"
|
||||
|
|
Loading…
Reference in New Issue