docusaurus/packages/docusaurus-plugin-content-pages/src/plugin-content-pages.d.ts
Bartosz Kaszubowski f9944cb2fc
feat(v2): add optional custom wrapper class name for pages based on theme classic Layout (#3457)
* 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
2020-09-23 15:38:17 +03:00

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;
}