@docusaurus/types 4.0.0-canary-6818 → 4.0.0-canary-6821
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 +3 -3
- package/src/plugin.d.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/types",
|
|
3
|
-
"version": "4.0.0-canary-
|
|
3
|
+
"version": "4.0.0-canary-6821",
|
|
4
4
|
"description": "Common types for Docusaurus packages.",
|
|
5
5
|
"types": "./src/index.d.ts",
|
|
6
6
|
"publishConfig": {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"@types/history": "^4.7.11",
|
|
18
18
|
"@types/mdast": "^4.0.4",
|
|
19
19
|
"@types/react": "19.3.0",
|
|
20
|
-
"commander": "^
|
|
20
|
+
"commander": "^15.0.0",
|
|
21
21
|
"joi": "^18.2.8",
|
|
22
22
|
"react-helmet-async": "npm:@slorber/react-helmet-async@1.3.0",
|
|
23
23
|
"utility-types": "^3.11.0",
|
|
@@ -28,5 +28,5 @@
|
|
|
28
28
|
"react": "^19.3.0",
|
|
29
29
|
"react-dom": "^19.3.0"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "9391ea0602707f2012a14a4dfd56f813413f5332"
|
|
32
32
|
}
|
package/src/plugin.d.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import type {CodeTranslations, TranslationFile} from './i18n';
|
|
9
9
|
import type {RuleSetRule, Configuration as WebpackConfiguration} from 'webpack';
|
|
10
10
|
import type {CustomizeRuleString} from 'webpack-merge/dist/types';
|
|
11
|
-
import type {
|
|
11
|
+
import type {Command} from 'commander';
|
|
12
12
|
import type Joi from 'joi';
|
|
13
13
|
import type {ThemeConfig} from './config';
|
|
14
14
|
import type {LoadContext, Props} from './context';
|
|
@@ -153,7 +153,7 @@ export type Plugin<Content = unknown> = {
|
|
|
153
153
|
getTypeScriptThemePath?: () => string;
|
|
154
154
|
getPathsToWatch?: () => string[];
|
|
155
155
|
getClientModules?: () => string[];
|
|
156
|
-
extendCli?: (cli:
|
|
156
|
+
extendCli?: (cli: Command) => void;
|
|
157
157
|
injectHtmlTags?: (args: {content: Content}) => {
|
|
158
158
|
headTags?: HtmlTags;
|
|
159
159
|
preBodyTags?: HtmlTags;
|