Improve types
This commit is contained in:
parent
a3d6048336
commit
3d1f03cf02
|
@ -7,11 +7,12 @@ import {
|
||||||
DropPosition,
|
DropPosition,
|
||||||
PingSource,
|
PingSource,
|
||||||
PreviewDevice,
|
PreviewDevice,
|
||||||
|
Screen,
|
||||||
} from "@budibase/types"
|
} from "@budibase/types"
|
||||||
|
|
||||||
interface BuilderStore {
|
interface BuilderStore {
|
||||||
inBuilder: boolean
|
inBuilder: boolean
|
||||||
screen: string | null
|
screen: Screen | null
|
||||||
selectedComponentId: string | null
|
selectedComponentId: string | null
|
||||||
editMode: boolean
|
editMode: boolean
|
||||||
previewId: string | null
|
previewId: string | null
|
||||||
|
@ -25,7 +26,7 @@ interface BuilderStore {
|
||||||
metadata: { componentId: string; step: number } | null
|
metadata: { componentId: string; step: number } | null
|
||||||
snippets: string | null
|
snippets: string | null
|
||||||
componentErrors: {}
|
componentErrors: {}
|
||||||
layout: null
|
layout: any
|
||||||
}
|
}
|
||||||
|
|
||||||
const createBuilderStore = () => {
|
const createBuilderStore = () => {
|
||||||
|
|
Loading…
Reference in New Issue