chore(v2): Define type for markdown right table of contents (#3306)

This commit is contained in:
Sam Zhou 2020-08-20 11:57:19 -04:00 committed by GitHub
parent fb49a7fc89
commit b38f562322
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 57 additions and 3 deletions

View file

@ -8,6 +8,8 @@
/* eslint-disable camelcase */
declare module '@theme/BlogPostPage' {
import type {MarkdownRightTableOfContents} from '@docusaurus/types';
export type FrontMatter = {
readonly title: string;
readonly author?: string;
@ -42,7 +44,7 @@ declare module '@theme/BlogPostPage' {
export type Content = {
readonly frontMatter: FrontMatter;
readonly metadata: Metadata;
readonly rightToc: any; // TODO where to define this shared type?
readonly rightToc: MarkdownRightTableOfContents;
(): JSX.Element;
};