Use proper types
This commit is contained in:
parent
526ad59982
commit
227679f189
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue