@docusaurus/types 0.0.0-4314 → 0.0.0-4323
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/src/index.d.ts +3 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/types",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-4323",
|
|
4
4
|
"description": "Common types for Docusaurus packages.",
|
|
5
5
|
"types": "./src/index.d.ts",
|
|
6
6
|
"publishConfig": {
|
|
@@ -23,5 +23,5 @@
|
|
|
23
23
|
"webpack": "^5.61.0",
|
|
24
24
|
"webpack-merge": "^5.8.0"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "63bb7f3417035a64c6b9158509c003782d1eeeb7"
|
|
27
27
|
}
|
package/src/index.d.ts
CHANGED
|
@@ -317,7 +317,9 @@ export type LoadedPlugin<Content = unknown> = InitializedPlugin<Content> & {
|
|
|
317
317
|
};
|
|
318
318
|
|
|
319
319
|
export type PluginModule = {
|
|
320
|
-
<
|
|
320
|
+
<Options, Content>(context: LoadContext, options: Options):
|
|
321
|
+
| Plugin<Content>
|
|
322
|
+
| Promise<Plugin<Content>>;
|
|
321
323
|
validateOptions?: <T>(data: OptionValidationContext<T>) => T;
|
|
322
324
|
validateThemeConfig?: <T>(data: ThemeConfigValidationContext<T>) => T;
|
|
323
325
|
getSwizzleComponentList?: () => string[];
|