mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-03 08:49:51 +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
2
packages/docusaurus-types/src/index.d.ts
vendored
2
packages/docusaurus-types/src/index.d.ts
vendored
|
@ -229,7 +229,7 @@ export interface Plugin<Content = unknown> {
|
|||
content: Content; // the content loaded by this plugin instance
|
||||
allContent: AllContent; // content loaded by ALL the plugins
|
||||
actions: PluginContentLoadedActions;
|
||||
}): void;
|
||||
}): Promise<void>;
|
||||
routesLoaded?(routes: RouteConfig[]): void; // TODO remove soon, deprecated (alpha-60)
|
||||
postBuild?(props: Props): void;
|
||||
postStart?(props: Props): void;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue