File tree Expand file tree Collapse file tree 2 files changed +1
-8
lines changed
components/Pages/BasePage Expand file tree Collapse file tree 2 files changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -12,12 +12,8 @@ import { getMDXComponents } from "../../../mdx-components";
1212export 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 >
Original file line number Diff line number Diff 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
6461export type Page = InferPageType < typeof source > ;
You can’t perform that action at this time.
0 commit comments