docusaurus/packages/docusaurus-plugin-content-pages/src/plugin-content-pages.d.ts
Joshua Chen 0374426ce3
chore: upgrade TypeScript & other ESLint related deps (#5963)
* chore: upgrade ESLint related deps

* Upgrade TS

* Fix lock

* Bump Babel

* Update config
2021-11-18 21:15:37 +08:00

33 lines
954 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 '@docusaurus/plugin-content-pages' {
export type Options = Partial<import('./types').PluginOptions>;
}
declare module '@theme/MDXPage' {
import type {TOCItem} from '@docusaurus/types';
export interface Props {
readonly content: {
readonly frontMatter: {
readonly title: string;
readonly description: string;
readonly wrapperClassName?: string;
readonly hide_table_of_contents?: string;
readonly toc_min_heading_level?: number;
readonly toc_max_heading_level?: number;
};
readonly metadata: {readonly permalink: string};
readonly toc: readonly TOCItem[];
(): JSX.Element;
};
}
const MDXPage: (props: Props) => JSX.Element;
export default MDXPage;
}