Type UIDatasource

This commit is contained in:
Adria Navarro 2025-01-14 11:01:41 +01:00
parent 79039a1c30
commit bd1a04ff1b
2 changed files with 2 additions and 3 deletions

View File

@ -1,6 +1,6 @@
import { UITable, UIView } from "@budibase/types" import { UITable, UIView } from "@budibase/types"
export type UIDatasource = UITable | UIView export type UIDatasource = UITable | (Omit<UIView, "type"> & { type: "viewV2" })
export interface UIFieldMutation { export interface UIFieldMutation {
visible?: boolean visible?: boolean

View File

@ -8,10 +8,9 @@ import {
UISearchFilter, UISearchFilter,
} from "@budibase/types" } from "@budibase/types"
export interface UITable extends Omit<Table, "type"> { export interface UITable extends Table {
name: string name: string
id: string id: string
type: string
tableId: string tableId: string
primaryDisplay?: string primaryDisplay?: string
sort?: { sort?: {