mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-29 17:07:08 +02:00
fix: fix various TS errors (#5261)
* Fix import errors Signed-off-by: Josh-Cena <sidachen2003@gmail.com> * Oops Signed-off-by: Josh-Cena <sidachen2003@gmail.com> * Mark contentLoaded async Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
This commit is contained in:
parent
778def2d8c
commit
650f989dbb
3 changed files with 10 additions and 9 deletions
|
@ -9,6 +9,8 @@
|
|||
|
||||
declare module '@docusaurus/plugin-content-docs-types' {
|
||||
type VersionBanner = import('./types').VersionBanner;
|
||||
type GlobalDataVersion = import('./types').GlobalVersion;
|
||||
type GlobalDataDoc = import('./types').GlobalDoc;
|
||||
|
||||
export type PropVersionMetadata = {
|
||||
pluginId: string;
|
||||
|
@ -43,14 +45,12 @@ declare module '@docusaurus/plugin-content-docs-types' {
|
|||
[sidebarId: string]: PropSidebarItem[];
|
||||
};
|
||||
|
||||
export type {
|
||||
GlobalVersion as GlobalDataVersion,
|
||||
GlobalDoc as GlobalDataDoc,
|
||||
} from './types';
|
||||
export type {GlobalDataVersion, GlobalDataDoc};
|
||||
}
|
||||
|
||||
declare module '@theme/DocItem' {
|
||||
import type {TOCItem} from '@docusaurus/types';
|
||||
import type {PropVersionMetadata} from '@docusaurus/plugin-content-docs-types';
|
||||
|
||||
export type DocumentRoute = {
|
||||
readonly component: () => JSX.Element;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue