@docusaurus/types 3.4.0 → 3.5.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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/plugin.d.ts +4 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docusaurus/types",
3
- "version": "3.4.0",
3
+ "version": "3.5.1",
4
4
  "description": "Common types for Docusaurus packages.",
5
5
  "types": "./src/index.d.ts",
6
6
  "publishConfig": {
@@ -27,5 +27,5 @@
27
27
  "react": "^18.0.0",
28
28
  "react-dom": "^18.0.0"
29
29
  },
30
- "gitHead": "49e9a2143274a8dd795659b417b470bc42abbd6e"
30
+ "gitHead": "5acbc57bd62f3f808ef72007cd67d4c410d13829"
31
31
  }
package/src/plugin.d.ts CHANGED
@@ -191,7 +191,10 @@ export type LoadedPlugin = InitializedPlugin & {
191
191
  export type PluginModule<Content = unknown> = {
192
192
  (context: LoadContext, options: unknown):
193
193
  | Plugin<Content>
194
- | Promise<Plugin<Content>>;
194
+ | Promise<Plugin<Content>>
195
+ | null
196
+ | Promise<null>;
197
+
195
198
  validateOptions?: <T, U>(data: OptionValidationContext<T, U>) => U;
196
199
  validateThemeConfig?: <T>(data: ThemeConfigValidationContext<T>) => T;
197
200