mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-17 11:07:07 +02:00
refactor: move module declarations for non-route components to theme-classic (#6629)
This commit is contained in:
parent
5e2196441e
commit
5db848f0e7
3 changed files with 72 additions and 72 deletions
|
@ -209,26 +209,6 @@ declare module '@theme/DocItem' {
|
|||
export default DocItem;
|
||||
}
|
||||
|
||||
declare module '@theme/DocCard' {
|
||||
import type {PropSidebarItem} from '@docusaurus/plugin-content-docs';
|
||||
|
||||
export interface Props {
|
||||
readonly item: PropSidebarItem;
|
||||
}
|
||||
|
||||
export default function DocCard(props: Props): JSX.Element;
|
||||
}
|
||||
|
||||
declare module '@theme/DocCardList' {
|
||||
import type {PropSidebarItem} from '@docusaurus/plugin-content-docs';
|
||||
|
||||
export interface Props {
|
||||
readonly items: PropSidebarItem[];
|
||||
}
|
||||
|
||||
export default function DocCardList(props: Props): JSX.Element;
|
||||
}
|
||||
|
||||
declare module '@theme/DocCategoryGeneratedIndexPage' {
|
||||
import type {PropCategoryGeneratedIndex} from '@docusaurus/plugin-content-docs';
|
||||
|
||||
|
@ -241,12 +221,6 @@ declare module '@theme/DocCategoryGeneratedIndexPage' {
|
|||
): JSX.Element;
|
||||
}
|
||||
|
||||
declare module '@theme/DocItemFooter' {
|
||||
import type {Props} from '@theme/DocItem';
|
||||
|
||||
export default function DocItemFooter(props: Props): JSX.Element;
|
||||
}
|
||||
|
||||
declare module '@theme/DocTagsListPage' {
|
||||
import type {PropTagsListPage} from '@docusaurus/plugin-content-docs';
|
||||
|
||||
|
@ -263,22 +237,6 @@ declare module '@theme/DocTagDocListPage' {
|
|||
export default function DocTagDocListPage(props: Props): JSX.Element;
|
||||
}
|
||||
|
||||
declare module '@theme/DocVersionBanner' {
|
||||
export interface Props {
|
||||
readonly className?: string;
|
||||
}
|
||||
|
||||
export default function DocVersionBanner(props: Props): JSX.Element;
|
||||
}
|
||||
|
||||
declare module '@theme/DocVersionBadge' {
|
||||
export interface Props {
|
||||
readonly className?: string;
|
||||
}
|
||||
|
||||
export default function DocVersionBadge(props: Props): JSX.Element;
|
||||
}
|
||||
|
||||
declare module '@theme/DocPage' {
|
||||
import type {PropVersionMetadata} from '@docusaurus/plugin-content-docs';
|
||||
import type {DocumentRoute} from '@theme/DocItem';
|
||||
|
@ -297,21 +255,6 @@ declare module '@theme/DocPage' {
|
|||
export default DocPage;
|
||||
}
|
||||
|
||||
declare module '@theme/Seo' {
|
||||
import type {ReactNode} from 'react';
|
||||
|
||||
export interface Props {
|
||||
readonly title?: string;
|
||||
readonly description?: string;
|
||||
readonly keywords?: readonly string[] | string;
|
||||
readonly image?: string;
|
||||
readonly children?: ReactNode;
|
||||
}
|
||||
|
||||
const Seo: (props: Props) => JSX.Element;
|
||||
export default Seo;
|
||||
}
|
||||
|
||||
// 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