fix: type standalone canvas theme_id as ThemeId
The Docker CI build (tsc -b, stricter than the local tsc --noEmit) rejected passing the storage theme_id (string) to setTheme/setCustomStyle which expect ThemeId. Type StandaloneCanvas.theme_id as ThemeId so the standalone load path matches the theme store API. ha-relevant: no
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
*/
|
||||
import type { Node, Edge } from '@xyflow/react'
|
||||
import type { Design, DesignType, NodeData, EdgeData, CustomStyleDef } from '@/types'
|
||||
import type { ThemeId } from '@/utils/themes'
|
||||
import { generateUUID } from '@/utils/uuid'
|
||||
|
||||
const DESIGNS_KEY = 'homelable_designs'
|
||||
@@ -21,7 +22,7 @@ const canvasKey = (designId: string) => `${LEGACY_CANVAS_KEY}:${designId}`
|
||||
export interface StandaloneCanvas {
|
||||
nodes: Node<NodeData>[]
|
||||
edges: Edge<EdgeData>[]
|
||||
theme_id?: string
|
||||
theme_id?: ThemeId
|
||||
custom_style?: CustomStyleDef | null
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user