@docusaurus/types 3.0.0-beta.0 → 3.0.0-rc.1

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docusaurus/types",
3
- "version": "3.0.0-beta.0",
3
+ "version": "3.0.0-rc.1",
4
4
  "description": "Common types for Docusaurus packages.",
5
5
  "types": "./src/index.d.ts",
6
6
  "publishConfig": {
@@ -26,5 +26,5 @@
26
26
  "react": "^18.0.0",
27
27
  "react-dom": "^18.0.0"
28
28
  },
29
- "gitHead": "27a1e90d9fff88af90ecad35bea16d4d7230482a"
29
+ "gitHead": "a51cc6fd7660d47ea08349f723cec9c017af0b4e"
30
30
  }
package/src/index.d.ts CHANGED
@@ -52,6 +52,7 @@ export {
52
52
  PluginVersionInformation,
53
53
  Preset,
54
54
  PresetConfig,
55
+ PresetConfigDefined,
55
56
  PresetModule,
56
57
  OptionValidationContext,
57
58
  ThemeConfigValidationContext,
package/src/plugin.d.ts CHANGED
@@ -26,11 +26,9 @@ export type PluginConfig =
26
26
  | false
27
27
  | null;
28
28
 
29
- export type PresetConfig =
30
- | string
31
- | [string, {[key: string]: unknown}]
32
- | false
33
- | null;
29
+ export type PresetConfigDefined = string | [string, {[key: string]: unknown}];
30
+
31
+ export type PresetConfig = PresetConfigDefined | false | null;
34
32
 
35
33
  /**
36
34
  * - `type: 'package'`, plugin is in a different package.