@docusaurus/types 0.0.0-4678 → 0.0.0-4682

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/index.d.ts +2 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docusaurus/types",
3
- "version": "0.0.0-4678",
3
+ "version": "0.0.0-4682",
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.69.1",
24
24
  "webpack-merge": "^5.8.0"
25
25
  },
26
- "gitHead": "553449a1da416365f1980133f6059baa57e9df50"
26
+ "gitHead": "143b48a54a5604d348ff1ad02fd024c8cf9d33a2"
27
27
  }
package/src/index.d.ts CHANGED
@@ -161,10 +161,7 @@ export type ImportedPresetModule = PresetModule & {
161
161
  default?: PresetModule;
162
162
  };
163
163
 
164
- export type PresetConfig =
165
- | [string, Record<string, unknown>]
166
- | [string]
167
- | string;
164
+ export type PresetConfig = string | [string, Record<string, unknown>];
168
165
 
169
166
  export type HostPortCLIOptions = {
170
167
  host?: string;
@@ -356,9 +353,8 @@ export type ConfigurePostCssFn = Plugin<unknown>['configurePostCss'];
356
353
  export type PluginOptions = {id?: string} & Record<string, unknown>;
357
354
 
358
355
  export type PluginConfig =
359
- | [string, PluginOptions]
360
- | [string]
361
356
  | string
357
+ | [string, PluginOptions]
362
358
  | [PluginModule, PluginOptions]
363
359
  | PluginModule;
364
360