mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-10 07:37:19 +02:00
refactor: unify how MDX content types are represented (#7145)
* refactor: unify how MDX content types are represented * fix * fix again
This commit is contained in:
parent
b50def3ac0
commit
7a61eed3dd
4 changed files with 25 additions and 33 deletions
|
@ -496,7 +496,7 @@ declare module '@docusaurus/plugin-content-docs' {
|
|||
}
|
||||
|
||||
declare module '@theme/DocItem' {
|
||||
import type {TOCItem} from '@docusaurus/types';
|
||||
import type {LoadedMDXContent} from '@docusaurus/mdx-loader';
|
||||
import type {
|
||||
PropVersionMetadata,
|
||||
Assets,
|
||||
|
@ -514,14 +514,7 @@ declare module '@theme/DocItem' {
|
|||
export interface Props {
|
||||
readonly route: DocumentRoute;
|
||||
readonly versionMetadata: PropVersionMetadata;
|
||||
readonly content: {
|
||||
readonly frontMatter: DocFrontMatter;
|
||||
readonly metadata: DocMetadata;
|
||||
readonly toc: readonly TOCItem[];
|
||||
readonly contentTitle: string | undefined;
|
||||
readonly assets: Assets;
|
||||
(): JSX.Element;
|
||||
};
|
||||
readonly content: LoadedMDXContent<DocFrontMatter, DocMetadata, Assets>;
|
||||
}
|
||||
|
||||
export default function DocItem(props: Props): JSX.Element;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue