mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-02 03:37:48 +02:00
* feat(v2): add optional custom wrapper class name for pages based on theme classic Layout * feat(v2): add optional custom wrapper class name for markdown pages * fix TS types
26 lines
730 B
TypeScript
26 lines
730 B
TypeScript
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
declare module '@theme/MDXPage' {
|
|
import type {MarkdownRightTableOfContents} from '@docusaurus/types';
|
|
|
|
export type Props = {
|
|
readonly content: {
|
|
readonly frontMatter: {
|
|
readonly title: string;
|
|
readonly description: string;
|
|
readonly wrapperClassName?: string;
|
|
};
|
|
readonly metadata: {readonly permalink: string};
|
|
readonly rightToc: readonly MarkdownRightTableOfContents[];
|
|
(): JSX.Element;
|
|
};
|
|
};
|
|
|
|
const MDXPage: (props: Props) => JSX.Element;
|
|
export default MDXPage;
|
|
}
|