From 7436d1bf1814b6f0fd052e6aec68ef5741899ec5 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Wed, 22 Apr 2026 17:37:53 +0000 Subject: [PATCH] Changes Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com> --- src/components/forms/custom-form-builder.tsx | 12 ++++++------ src/routeTree.gen.ts | 9 --------- 2 files changed, 6 insertions(+), 15 deletions(-) diff --git a/src/components/forms/custom-form-builder.tsx b/src/components/forms/custom-form-builder.tsx index d534700..71f8832 100644 --- a/src/components/forms/custom-form-builder.tsx +++ b/src/components/forms/custom-form-builder.tsx @@ -100,13 +100,13 @@ const PaddedParagraph = Paragraph.extend({ ...this.parent?.(), indent: { default: 0, - parseHTML: (el) => { + parseHTML: (el: HTMLElement) => { const pl = (el as HTMLElement).style.paddingLeft; if (!pl) return 0; const n = parseInt(pl, 10); return isNaN(n) ? 0 : n; }, - renderHTML: (attrs) => { + renderHTML: (attrs: { indent?: number }) => { const i = Number(attrs.indent ?? 0); if (!i) return {}; return { style: `padding-left: ${i}px` }; @@ -114,8 +114,8 @@ const PaddedParagraph = Paragraph.extend({ }, caption: { default: false, - parseHTML: (el) => (el as HTMLElement).getAttribute("data-caption") === "true", - renderHTML: (attrs) => + parseHTML: (el: HTMLElement) => (el as HTMLElement).getAttribute("data-caption") === "true", + renderHTML: (attrs: { caption?: boolean }) => attrs.caption ? { "data-caption": "true", @@ -135,13 +135,13 @@ const PaddedHeading = Heading.extend({ ...this.parent?.(), indent: { default: 0, - parseHTML: (el) => { + parseHTML: (el: HTMLElement) => { const pl = (el as HTMLElement).style.paddingLeft; if (!pl) return 0; const n = parseInt(pl, 10); return isNaN(n) ? 0 : n; }, - renderHTML: (attrs) => { + renderHTML: (attrs: { indent?: number }) => { const i = Number(attrs.indent ?? 0); if (!i) return {}; return { style: `padding-left: ${i}px` }; diff --git a/src/routeTree.gen.ts b/src/routeTree.gen.ts index 2c230ca..94db69b 100644 --- a/src/routeTree.gen.ts +++ b/src/routeTree.gen.ts @@ -1046,12 +1046,3 @@ const rootRouteChildren: RootRouteChildren = { export const routeTree = rootRouteImport ._addFileChildren(rootRouteChildren) ._addFileTypes() - -import type { getRouter } from './router.tsx' -import type { createStart } from '@tanstack/react-start' -declare module '@tanstack/react-start' { - interface Register { - ssr: true - router: Awaited> - } -}