@docusaurus/module-type-aliases 0.0.0-4840 → 0.0.0-4843

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 +3 -3
  2. package/src/index.d.ts +5 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docusaurus/module-type-aliases",
3
- "version": "0.0.0-4840",
3
+ "version": "0.0.0-4843",
4
4
  "description": "Docusaurus module type aliases.",
5
5
  "types": "./src/index.d.ts",
6
6
  "publishConfig": {
@@ -12,7 +12,7 @@
12
12
  "directory": "packages/docusaurus-module-type-aliases"
13
13
  },
14
14
  "dependencies": {
15
- "@docusaurus/types": "0.0.0-4840",
15
+ "@docusaurus/types": "0.0.0-4843",
16
16
  "@types/react": "*",
17
17
  "@types/react-router-config": "*",
18
18
  "@types/react-router-dom": "*",
@@ -23,5 +23,5 @@
23
23
  "react-dom": "*"
24
24
  },
25
25
  "license": "MIT",
26
- "gitHead": "31e83775c132dee13950e08b0cb9c936c13f80d5"
26
+ "gitHead": "969ea1e03a0bb2c1ec75e91b3175bef0746d9b22"
27
27
  }
package/src/index.d.ts CHANGED
@@ -315,16 +315,18 @@ declare module '@docusaurus/renderRoutes' {
315
315
  }
316
316
 
317
317
  declare module '@docusaurus/useGlobalData' {
318
- import type {GlobalData} from '@docusaurus/types';
318
+ import type {GlobalData, UseDataOptions} from '@docusaurus/types';
319
319
 
320
320
  export function useAllPluginInstancesData(
321
321
  pluginName: string,
322
- ): GlobalData[string];
322
+ options?: UseDataOptions,
323
+ ): GlobalData[string] | undefined;
323
324
 
324
325
  export function usePluginData(
325
326
  pluginName: string,
326
327
  pluginId?: string,
327
- ): GlobalData[string][string];
328
+ options?: UseDataOptions,
329
+ ): GlobalData[string][string] | undefined;
328
330
 
329
331
  export default function useGlobalData(): GlobalData;
330
332
  }