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> - } -}