From 6c73fd1dbc6b74c12a78efe9af2aa6d0c57ab8dd Mon Sep 17 00:00:00 2001 From: Usman Baig Date: Sun, 29 Mar 2026 01:09:30 +0100 Subject: [PATCH] fix: type error on pre component children.props access --- app/integrations/[slug]/page.tsx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/app/integrations/[slug]/page.tsx b/app/integrations/[slug]/page.tsx index 822493d..99efefc 100644 --- a/app/integrations/[slug]/page.tsx +++ b/app/integrations/[slug]/page.tsx @@ -19,12 +19,9 @@ import { IntegrationGuide } from '@/components/IntegrationGuide' // * ─── MDX Components ──────────────────────────────────────────── // rehype-mdx-code-props passes meta (e.g. filename="app.tsx") as props // on the
 element. We intercept 
 to extract filename and render CodeBlock.
+// eslint-disable-next-line @typescript-eslint/no-explicit-any
 const mdxComponents = {
-  pre: ({ children, filename, ...props }: {
-    children: React.ReactElement
-    filename?: string
-    [key: string]: unknown
-  }) => {
+  pre: ({ children, filename, ...props }: any) => {
     const code = children?.props?.children
     if (typeof code === 'string') {
       return (