@docusaurus/types 0.0.0-4517 → 0.0.0-4523
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 -4
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-4523",
|
|
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": "e78e68d4bc6a23f7e616eb7b59da9c79d9fb7452"
|
|
27
27
|
}
|
package/src/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import type {RuleSetRule, Configuration} from 'webpack';
|
|
9
|
-
import type {
|
|
9
|
+
import type {CommanderStatic} from 'commander';
|
|
10
10
|
import type {ParsedUrlQueryInput} from 'querystring';
|
|
11
11
|
import type Joi from 'joi';
|
|
12
12
|
import type {Overwrite, DeepPartial} from 'utility-types';
|
|
@@ -27,7 +27,7 @@ export interface DocusaurusConfig {
|
|
|
27
27
|
baseUrl: string;
|
|
28
28
|
baseUrlIssueBanner: boolean;
|
|
29
29
|
favicon?: string;
|
|
30
|
-
tagline
|
|
30
|
+
tagline: string;
|
|
31
31
|
title: string;
|
|
32
32
|
url: string;
|
|
33
33
|
// trailingSlash undefined = legacy retrocompatible behavior => /file => /file/index.html
|
|
@@ -259,7 +259,6 @@ export interface Plugin<Content = unknown> {
|
|
|
259
259
|
}) => Promise<void>;
|
|
260
260
|
routesLoaded?: (routes: RouteConfig[]) => void; // TODO remove soon, deprecated (alpha-60)
|
|
261
261
|
postBuild?: (props: Props & {content: Content}) => Promise<void>;
|
|
262
|
-
postStart?: (props: Props) => void;
|
|
263
262
|
// TODO refactor the configureWebpack API surface: use an object instead of multiple params (requires breaking change)
|
|
264
263
|
configureWebpack?: (
|
|
265
264
|
config: Configuration,
|
|
@@ -272,7 +271,7 @@ export interface Plugin<Content = unknown> {
|
|
|
272
271
|
getTypeScriptThemePath?: () => string;
|
|
273
272
|
getPathsToWatch?: () => string[];
|
|
274
273
|
getClientModules?: () => string[];
|
|
275
|
-
extendCli?: (cli:
|
|
274
|
+
extendCli?: (cli: CommanderStatic) => void;
|
|
276
275
|
injectHtmlTags?: ({content}: {content: Content}) => {
|
|
277
276
|
headTags?: HtmlTags;
|
|
278
277
|
preBodyTags?: HtmlTags;
|