mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-10 23:57:22 +02:00
refactor: split and cleanup theme/DocPage (#7006)
This commit is contained in:
parent
2964e6f65d
commit
1b974e8b1b
10 changed files with 299 additions and 163 deletions
|
@ -275,6 +275,40 @@ declare module '@theme/DocPage' {
|
|||
export default function DocPage(props: Props): JSX.Element;
|
||||
}
|
||||
|
||||
declare module '@theme/DocPage/Layout' {
|
||||
import type {ReactNode} from 'react';
|
||||
|
||||
export interface Props {
|
||||
children: ReactNode;
|
||||
}
|
||||
|
||||
export default function DocPageLayout(props: Props): JSX.Element;
|
||||
}
|
||||
|
||||
declare module '@theme/DocPage/Layout/Aside' {
|
||||
import type {Dispatch, SetStateAction} from 'react';
|
||||
import type {PropSidebar} from '@docusaurus/plugin-content-docs';
|
||||
|
||||
export interface Props {
|
||||
sidebar: PropSidebar;
|
||||
hiddenSidebarContainer: boolean;
|
||||
setHiddenSidebarContainer: Dispatch<SetStateAction<boolean>>;
|
||||
}
|
||||
|
||||
export default function DocPageLayoutAside(props: Props): JSX.Element;
|
||||
}
|
||||
|
||||
declare module '@theme/DocPage/Layout/Main' {
|
||||
import type {ReactNode} from 'react';
|
||||
|
||||
export interface Props {
|
||||
hiddenSidebarContainer: boolean;
|
||||
children: ReactNode;
|
||||
}
|
||||
|
||||
export default function DocPageLayoutMain(props: Props): JSX.Element;
|
||||
}
|
||||
|
||||
// TODO until TS supports exports field... hope it's in 4.6
|
||||
declare module '@docusaurus/plugin-content-docs/client' {
|
||||
export type ActivePlugin = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue