fix(ui): replace children cast to any with hono/jsx Child type

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
Julien Herr
2026-05-22 15:35:10 +02:00
parent 0e1592f8c6
commit d64f703820
3 changed files with 4 additions and 3 deletions
+1
View File
@@ -7,6 +7,7 @@ dist/
coverage/
.wrangler/
.dev.vars
src/scripts/generated/
# Environment
.env
+1 -1
View File
@@ -17,7 +17,7 @@
"test:watch": "vitest",
"test:coverage": "vitest run --coverage",
"typecheck": "tsc --noEmit",
"prepare": "husky"
"prepare": "husky && npm run build:client"
},
"lint-staged": {
"*.{ts,js}": [
+2 -2
View File
@@ -3,7 +3,7 @@ import { interactiveScripts } from "../../scripts/index";
type LayoutProps = {
title: string;
children: unknown;
children: import("hono/jsx").Child;
};
export const Layout = ({ title, children }: LayoutProps) => {
@@ -17,7 +17,7 @@ export const Layout = ({ title, children }: LayoutProps) => {
<style dangerouslySetInnerHTML={{ __html: designSystem }} />
<script dangerouslySetInnerHTML={{ __html: interactiveScripts + ";" }} />
</head>
<body class="page">{children as any}</body>
<body class="page">{children}</body>
</html>
);
};