mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-11 15:22:29 +02:00
refactor: make all Props defined as interface + readonly (#5636)
* Initial work * Fix
This commit is contained in:
parent
21ef908f00
commit
7f7b858cd4
11 changed files with 169 additions and 141 deletions
|
@ -12,7 +12,7 @@ declare module '@docusaurus/plugin-content-pages' {
|
|||
declare module '@theme/MDXPage' {
|
||||
import type {TOCItem} from '@docusaurus/types';
|
||||
|
||||
export type Props = {
|
||||
export interface Props {
|
||||
readonly content: {
|
||||
readonly frontMatter: {
|
||||
readonly title: string;
|
||||
|
@ -28,7 +28,7 @@ declare module '@theme/MDXPage' {
|
|||
readonly toc: readonly TOCItem[];
|
||||
(): JSX.Element;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
const MDXPage: (props: Props) => JSX.Element;
|
||||
export default MDXPage;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue