@docusaurus/module-type-aliases 0.0.0-5044 → 0.0.0-5049
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 +3 -3
- package/src/index.d.ts +13 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/module-type-aliases",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-5049",
|
|
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-
|
|
15
|
+
"@docusaurus/types": "0.0.0-5049",
|
|
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": "
|
|
26
|
+
"gitHead": "527b2a01c46b67483327a1a6873fccf81bc19e2c"
|
|
27
27
|
}
|
package/src/index.d.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
declare module '@generated/client-modules' {
|
|
9
9
|
import type {ClientModule} from '@docusaurus/types';
|
|
10
10
|
|
|
11
|
-
const clientModules: readonly (ClientModule & {default
|
|
11
|
+
const clientModules: readonly (ClientModule & {default?: ClientModule})[];
|
|
12
12
|
export default clientModules;
|
|
13
13
|
}
|
|
14
14
|
|
|
@@ -323,16 +323,27 @@ declare module '@docusaurus/renderRoutes' {
|
|
|
323
323
|
declare module '@docusaurus/useGlobalData' {
|
|
324
324
|
import type {GlobalData, UseDataOptions} from '@docusaurus/types';
|
|
325
325
|
|
|
326
|
+
export function useAllPluginInstancesData(
|
|
327
|
+
pluginName: string,
|
|
328
|
+
options: {failfast: true},
|
|
329
|
+
): GlobalData[string];
|
|
330
|
+
|
|
326
331
|
export function useAllPluginInstancesData(
|
|
327
332
|
pluginName: string,
|
|
328
333
|
options?: UseDataOptions,
|
|
329
334
|
): GlobalData[string] | undefined;
|
|
330
335
|
|
|
336
|
+
export function usePluginData(
|
|
337
|
+
pluginName: string,
|
|
338
|
+
pluginId: string | undefined,
|
|
339
|
+
options: {failfast: true},
|
|
340
|
+
): NonNullable<GlobalData[string][string]>;
|
|
341
|
+
|
|
331
342
|
export function usePluginData(
|
|
332
343
|
pluginName: string,
|
|
333
344
|
pluginId?: string,
|
|
334
345
|
options?: UseDataOptions,
|
|
335
|
-
): GlobalData[string][string]
|
|
346
|
+
): GlobalData[string][string];
|
|
336
347
|
|
|
337
348
|
export default function useGlobalData(): GlobalData;
|
|
338
349
|
}
|