Move type
This commit is contained in:
parent
a3d73ee6ce
commit
d55e29f9a6
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue