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