mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-03 00:39:45 +02:00
chore(v2): Define type for markdown right table of contents (#3306)
This commit is contained in:
parent
fb49a7fc89
commit
b38f562322
7 changed files with 57 additions and 3 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue