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:
Joshua Chen 2021-08-02 17:02:43 +08:00 committed by GitHub
parent 778def2d8c
commit 650f989dbb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 9 deletions

View file

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