Bladeren bron

types again

Alexandru Cambose 3 weken geleden
bovenliggende
commit
9386c04246

+ 1 - 1
apps/developer-hub/src/components/Pages/BasePage/index.tsx

@@ -16,7 +16,7 @@ export function BasePage(props: { params: { slug: string[] } }) {
   // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
   const MDX = page.data.body;
   return (
-    // @ts-expect-error - toc and full are properties of PageData, but not defined in the types so we need to cast to any
+    // @ts-expect-error - toc and full are properties of PageData, but not defined in the types
     // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
     <DocsPage toc={page.data.toc} full={page.data.full}>
       <DocsTitle>{page.data.title}</DocsTitle>

+ 1 - 2
apps/developer-hub/src/lib/source.ts

@@ -56,8 +56,7 @@ export const source = loader({
   },
   source: docs.toFumadocsSource(),
   pageTree: {
-    // types are very similar but not exactly the same
-    // @ts-expect-error - some weird type issues
+    // @ts-expect-error - types are very similar but not exactly the same
     transformers: [openapiPlugin()],
   },
 });