From d64f7038203d69fd2ea5b75b5f7e390c594fa582 Mon Sep 17 00:00:00 2001 From: Julien Herr Date: Fri, 22 May 2026 15:35:10 +0200 Subject: [PATCH] fix(ui): replace children cast to any with hono/jsx Child type Co-Authored-By: Claude Sonnet 4.5 --- .gitignore | 1 + package.json | 2 +- src/routes/admin/ui.tsx | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 6da7f09..3ea7e39 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,7 @@ dist/ coverage/ .wrangler/ .dev.vars +src/scripts/generated/ # Environment .env diff --git a/package.json b/package.json index ec1e7ca..34e2d8c 100644 --- a/package.json +++ b/package.json @@ -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}": [ diff --git a/src/routes/admin/ui.tsx b/src/routes/admin/ui.tsx index d7d7533..3b5a05d 100644 --- a/src/routes/admin/ui.tsx +++ b/src/routes/admin/ui.tsx @@ -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) => {