Type initial props

This commit is contained in:
Adria Navarro 2024-12-30 12:21:39 +01:00
parent d21e25f72d
commit 2d36eab278
1 changed files with 11 additions and 2 deletions

View File

@ -24,6 +24,7 @@ import * as ViewV2 from "./datasources/viewV2"
import * as NonPlus from "./datasources/nonPlus" import * as NonPlus from "./datasources/nonPlus"
import * as Cache from "./cache" import * as Cache from "./cache"
import * as Conditions from "./conditions" import * as Conditions from "./conditions"
import { UIDatasource } from "@budibase/types"
const DependencyOrderedStores = [ const DependencyOrderedStores = [
Sort, Sort,
@ -53,6 +54,16 @@ const DependencyOrderedStores = [
export interface BaseStore { export interface BaseStore {
API: APIClient API: APIClient
gridID: string
props: Writable<{
datasource: UIDatasource
canAddRows: boolean
canEditRows: boolean
canDeleteRows: boolean
canEditColumns: boolean
canExpandRows: boolean
canSaveSchema: boolean
}>
} }
export type Store = BaseStore & export type Store = BaseStore &
@ -74,8 +85,6 @@ export type Store = BaseStore &
config: Writable<any> config: Writable<any>
dispatch: (event: string, data: any) => any dispatch: (event: string, data: any) => any
notifications: Writable<any> notifications: Writable<any>
gridID: string
props: Writable<any>
width: Writable<number> width: Writable<number>
bounds: Readable<any> bounds: Readable<any>
height: Readable<number> height: Readable<number>