mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-09 23:27:28 +02:00
feat(v2): Provide typing to most of the theme-classic components (#3348)
* feat(v2): Provide typing to most of the theme-classic components * Expose type to the end users and dogfood it in v2 website
This commit is contained in:
parent
658dac7d42
commit
bd9b6618c1
31 changed files with 440 additions and 125 deletions
|
@ -66,6 +66,8 @@ declare module '@theme/DocItem' {
|
|||
readonly lastUpdatedAt?: number;
|
||||
readonly lastUpdatedBy?: string;
|
||||
readonly version?: string;
|
||||
readonly previous?: {readonly permalink: string; readonly title: string};
|
||||
readonly next?: {readonly permalink: string; readonly title: string};
|
||||
};
|
||||
|
||||
export type Props = {
|
||||
|
@ -73,7 +75,7 @@ declare module '@theme/DocItem' {
|
|||
readonly content: {
|
||||
readonly frontMatter: FrontMatter;
|
||||
readonly metadata: Metadata;
|
||||
readonly rightToc: MarkdownRightTableOfContents;
|
||||
readonly rightToc: readonly MarkdownRightTableOfContents[];
|
||||
(): JSX.Element;
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue