Type and export

This commit is contained in:
Adria Navarro 2025-01-14 11:51:19 +01:00
parent f1680f4941
commit 85ab9e3ce3
3 changed files with 3 additions and 2 deletions

View File

@ -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 || {})) {

View File

@ -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,

View File

@ -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"