Use proper types

This commit is contained in:
Adria Navarro 2025-02-14 12:57:27 +01:00
parent 526ad59982
commit 227679f189
1 changed files with 13 additions and 7 deletions

View File

@ -8,6 +8,12 @@ import {
PingSource,
PreviewDevice,
Screen,
Theme,
AppCustomTheme,
AppNavigation,
Plugin,
Snippet,
UIComponentError,
} from "@budibase/types"
interface BuilderStore {
@ -16,16 +22,16 @@ interface BuilderStore {
selectedComponentId: string | null
editMode: boolean
previewId: string | null
theme: string | null
customTheme: string | null
theme: Theme | null
customTheme: AppCustomTheme | null
previewDevice: PreviewDevice
navigation: string | null
hiddenComponentIds: []
usedPlugins: { name: string; hash: string }[] | null
navigation: AppNavigation | null
hiddenComponentIds: string[]
usedPlugins: Plugin[] | null
eventResolvers: {}
metadata: { componentId: string; step: number } | null
snippets: string | null
componentErrors: {}
snippets: Snippet[] | null
componentErrors: Record<string, UIComponentError[]>
layout: any
}