refactor: move module declarations for non-route components to theme-classic (#6629)

This commit is contained in:
Joshua Chen 2022-02-07 20:17:41 +08:00 committed by GitHub
parent 5e2196441e
commit 5db848f0e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 72 additions and 72 deletions

View file

@ -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';