Skip to content

Commit d9dcecc

Browse files
committed
types ignore
1 parent 4c6da53 commit d9dcecc

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@ import { getMDXComponents } from "../../../mdx-components";
1212
export function BasePage(props: { params: { slug: string[] } }) {
1313
const page = source.getPage(props.params.slug);
1414
if (!page) notFound();
15-
15+
// @ts-expect-error - body is a property of PageData, but not defined in the types
16+
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
1617
const MDX = page.data.body;
17-
1818
return (
19+
// @ts-expect-error - toc and full are properties of PageData, but not defined in the types so we need to cast to any
20+
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
1921
<DocsPage toc={page.data.toc} full={page.data.full}>
2022
<DocsTitle>{page.data.title}</DocsTitle>
2123
<DocsDescription>{page.data.description}</DocsDescription>

apps/developer-hub/src/lib/get-llm-text.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export async function getLLMText(page: InferPageType<typeof source>) {
1717
});
1818

1919
// note: it doesn't escape frontmatter, it's up to you.
20-
return `# ${page.data.title}
20+
return `# ${page.data.title ?? ""}
2121
URL: ${page.url}
2222
2323
${String(processed.value)}`;

apps/developer-hub/src/lib/source.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export const source = loader({
5757
source: docs.toFumadocsSource(),
5858
pageTree: {
5959
// types are very similar but not exactly the same
60-
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
60+
// @ts-expect-error - some weird type issues
6161
transformers: [openapiPlugin()],
6262
},
6363
});

0 commit comments

Comments
 (0)