@docusaurus/types 0.0.0-4575 → 0.0.0-4577
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 +5 -6
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-4577",
|
|
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.68.0",
|
|
24
24
|
"webpack-merge": "^5.8.0"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "93945044541f69cf508b244470f6ae6a321add84"
|
|
27
27
|
}
|
package/src/index.d.ts
CHANGED
|
@@ -6,16 +6,12 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import type {RuleSetRule, Configuration} from 'webpack';
|
|
9
|
+
import type {CustomizeRuleString} from 'webpack-merge/dist/types';
|
|
9
10
|
import type {CommanderStatic} from 'commander';
|
|
10
11
|
import type {ParsedUrlQueryInput} from 'querystring';
|
|
11
12
|
import type Joi from 'joi';
|
|
12
13
|
import type {Overwrite, DeepPartial} from 'utility-types';
|
|
13
14
|
|
|
14
|
-
// Convert webpack-merge webpack-merge enum to union type
|
|
15
|
-
// For type retro-compatible webpack-merge upgrade: we used string literals
|
|
16
|
-
// before) See https://github.com/survivejs/webpack-merge/issues/179
|
|
17
|
-
type MergeStrategy = 'match' | 'merge' | 'append' | 'prepend' | 'replace';
|
|
18
|
-
|
|
19
15
|
export type ReportingSeverity = 'ignore' | 'log' | 'warn' | 'error' | 'throw';
|
|
20
16
|
|
|
21
17
|
export type ThemeConfig = {
|
|
@@ -333,7 +329,10 @@ export type ImportedPluginModule = PluginModule & {
|
|
|
333
329
|
};
|
|
334
330
|
|
|
335
331
|
export type ConfigureWebpackFn = Plugin<unknown>['configureWebpack'];
|
|
336
|
-
export type ConfigureWebpackFnMergeStrategy = Record<
|
|
332
|
+
export type ConfigureWebpackFnMergeStrategy = Record<
|
|
333
|
+
string,
|
|
334
|
+
CustomizeRuleString
|
|
335
|
+
>;
|
|
337
336
|
export type ConfigurePostCssFn = Plugin<unknown>['configurePostCss'];
|
|
338
337
|
|
|
339
338
|
export type PluginOptions = {id?: string} & Record<string, unknown>;
|