@docusaurus/types 3.10.1-canary-6591 → 3.10.1-canary-6592

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.10.1-canary-6591",
3
+ "version": "3.10.1-canary-6592",
4
4
  "description": "Common types for Docusaurus packages.",
5
5
  "types": "./src/index.d.ts",
6
6
  "publishConfig": {
@@ -28,5 +28,5 @@
28
28
  "react": "^19.2.0",
29
29
  "react-dom": "^19.2.0"
30
30
  },
31
- "gitHead": "0a37b4e95aa595949734a1cb72d13305bbacb822"
31
+ "gitHead": "f0ebdfb4384524fbf525326094cc8e3e9bded660"
32
32
  }
package/src/plugin.d.ts CHANGED
@@ -208,10 +208,10 @@ export type LoadedPlugin = InitializedPlugin & {
208
208
  };
209
209
 
210
210
  export type PluginModule<Content = unknown> = {
211
- (context: LoadContext, options: unknown):
212
- | Plugin<Content>
213
- | null
214
- | Promise<Plugin<Content> | null>;
211
+ (
212
+ context: LoadContext,
213
+ options: unknown,
214
+ ): Plugin<Content> | null | Promise<Plugin<Content> | null>;
215
215
 
216
216
  validateOptions?: <T, U>(data: OptionValidationContext<T, U>) => U;
217
217
  validateThemeConfig?: <T>(data: ThemeConfigValidationContext<T>) => T;
package/src/swizzle.d.ts CHANGED
@@ -32,12 +32,13 @@ export type SwizzleConfig = {
32
32
  export type WrapperProps<
33
33
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
34
34
  T extends keyof JSX.IntrinsicElements | JSXElementConstructor<any>,
35
- > = T extends JSXElementConstructor<infer P>
36
- ? unknown extends P
37
- ? // eslint-disable-next-line @typescript-eslint/ban-types
38
- {}
39
- : P
40
- : T extends keyof JSX.IntrinsicElements
41
- ? JSX.IntrinsicElements[T]
42
- : // eslint-disable-next-line @typescript-eslint/ban-types
43
- {};
35
+ > =
36
+ T extends JSXElementConstructor<infer P>
37
+ ? unknown extends P
38
+ ? // eslint-disable-next-line @typescript-eslint/ban-types
39
+ {}
40
+ : P
41
+ : T extends keyof JSX.IntrinsicElements
42
+ ? JSX.IntrinsicElements[T]
43
+ : // eslint-disable-next-line @typescript-eslint/ban-types
44
+ {};