feat: [US-054] - Character and Variable TypeScript types

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Gustavo Henrique Santos Souza de Miranda
2026-01-23 04:23:53 -03:00
co-authored by Claude Opus 4.5
parent e02d736f2e
commit d9c42f4cf7
4 changed files with 320 additions and 960 deletions
+7 -4
View File
@@ -31,10 +31,13 @@ export default async function EditorPage({ params }: PageProps) {
notFound()
}
const flowchartData = (project.flowchart_data || {
nodes: [],
edges: [],
}) as FlowchartData
const rawData = project.flowchart_data || {}
const flowchartData: FlowchartData = {
nodes: rawData.nodes || [],
edges: rawData.edges || [],
characters: rawData.characters || [],
variables: rawData.variables || [],
}
return (
<div className="flex h-screen flex-col">