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:
Pouzor
2026-06-30 00:58:42 +02:00
parent d1c052c9e8
commit 1f2d298419
+2 -1
View File
@@ -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
}