docusaurus/packages/docusaurus-plugin-content-pages/src/plugin-content-pages.d.ts
Sam Zhou 5e73c72f26
chore(v2): Fix linter warnings (#4442)
* chore(v2): Fix linter warnings

223 warnings to 145 warnings

* Remove explicit type annotations

* Do not prefetch when targetLink == null
2021-03-17 17:28:42 +01:00

28 lines
779 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 {TOCItem} from '@docusaurus/types';
export type Props = {
readonly content: {
readonly frontMatter: {
readonly title: string;
readonly description: string;
readonly wrapperClassName?: string;
// eslint-disable-next-line camelcase
readonly hide_table_of_contents?: string;
};
readonly metadata: {readonly permalink: string};
readonly toc: readonly TOCItem[];
(): JSX.Element;
};
};
const MDXPage: (props: Props) => JSX.Element;
export default MDXPage;
}