소스 검색

types again

Alexandru Cambose 3 주 전
부모
커밋
9386c04246
2개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 1
      apps/developer-hub/src/components/Pages/BasePage/index.tsx
  2. 1 2
      apps/developer-hub/src/lib/source.ts

+ 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()],
   },
 });