Move type

This commit is contained in:
Adria Navarro 2025-01-15 10:42:37 +01:00
parent a3d73ee6ce
commit d55e29f9a6
3 changed files with 13 additions and 7 deletions

View File

@ -5,7 +5,9 @@
fetchData,
QueryUtils,
DataFetchOptions,
ProviderDatasource,
DataFetchDatasource,
UserDatasource,
GroupUserDatasource,
} from "@budibase/frontend-core"
import {
LogicalOperator,
@ -16,6 +18,11 @@
} from "@budibase/types"
import { SDK, Component } from "../../index"
type ProviderDatasource = Exclude<
DataFetchDatasource,
UserDatasource | GroupUserDatasource
>
export let dataSource: ProviderDatasource
export let filter
export let sortColumn

View File

@ -17,6 +17,8 @@ import { Table, ViewV2Enriched } from "@budibase/types"
export type DataFetchType = keyof typeof DataFetchMap
export type { DataFetchOptions } from "./DataFetch"
export type { UserDatasource } from "./UserFetch"
export type { GroupUserDatasource } from "./GroupUserFetch"
export const DataFetchMap = {
table: TableFetch,
@ -78,11 +80,6 @@ export type DataFetchDatasource =
| NestedProviderDatasource
| FieldDatasource<"field" | "queryarray" | "jsonarray">
export type ProviderDatasource = Exclude<
DataFetchDatasource,
UserDatasource | GroupUserDatasource
>
export type DataFetchDefinition =
| Table
| ViewV2Enriched

View File

@ -4,7 +4,9 @@ export { fetchData, DataFetchMap } from "./fetch"
export type {
DataFetchType,
DataFetchOptions,
ProviderDatasource,
DataFetchDatasource,
UserDatasource,
GroupUserDatasource,
} from "./fetch"
export * as Constants from "./constants"
export * from "./stores"