Skip to content

Commit e881a57

Browse files
committed
type fix
1 parent 9386c04 commit e881a57

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,8 @@ 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-
// @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
1715
const MDX = page.data.body;
1816
return (
19-
// @ts-expect-error - toc and full are properties of PageData, but not defined in the types
20-
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
2117
<DocsPage toc={page.data.toc} full={page.data.full}>
2218
<DocsTitle>{page.data.title}</DocsTitle>
2319
<DocsDescription>{page.data.description}</DocsDescription>

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,7 @@ export const source = loader({
5555
return icon ? createElement(icons[icon] ?? FolderSimpleDashed) : undefined;
5656
},
5757
source: docs.toFumadocsSource(),
58-
pageTree: {
59-
// @ts-expect-error - types are very similar but not exactly the same
60-
transformers: [openapiPlugin()],
61-
},
58+
plugins: [openapiPlugin()],
6259
});
6360

6461
export type Page = InferPageType<typeof source>;

0 commit comments

Comments
 (0)