mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-24 06:27:02 +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
|
@ -148,21 +148,6 @@ declare module '@docusaurus/plugin-content-blog' {
|
|||
>;
|
||||
}
|
||||
|
||||
declare module '@theme/BlogSidebar' {
|
||||
export type BlogSidebarItem = {title: string; permalink: string};
|
||||
export type BlogSidebar = {
|
||||
title: string;
|
||||
items: BlogSidebarItem[];
|
||||
};
|
||||
|
||||
export interface Props {
|
||||
readonly sidebar: BlogSidebar;
|
||||
}
|
||||
|
||||
const BlogSidebar: (props: Props) => JSX.Element;
|
||||
export default BlogSidebar;
|
||||
}
|
||||
|
||||
declare module '@theme/BlogPostPage' {
|
||||
import type {BlogSidebar} from '@theme/BlogSidebar';
|
||||
import type {TOCItem} from '@docusaurus/types';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue