@docusaurus/module-type-aliases 0.0.0-4770 → 0.0.0-4773
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 +19 -19
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-4773",
|
|
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-4773",
|
|
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": "0b9141a33f0bd97301891a63eb74bfce75db76d5"
|
|
27
27
|
}
|
package/src/index.d.ts
CHANGED
|
@@ -44,13 +44,14 @@ declare module '@generated/routes' {
|
|
|
44
44
|
declare module '@generated/routesChunkNames' {
|
|
45
45
|
import type {RouteChunksTree} from '@docusaurus/types';
|
|
46
46
|
|
|
47
|
-
const routesChunkNames:
|
|
47
|
+
const routesChunkNames: {[route: string]: RouteChunksTree};
|
|
48
48
|
export = routesChunkNames;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
declare module '@generated/globalData' {
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
import type {GlobalData} from '@docusaurus/types';
|
|
53
|
+
|
|
54
|
+
const globalData: GlobalData;
|
|
54
55
|
export = globalData;
|
|
55
56
|
}
|
|
56
57
|
|
|
@@ -59,20 +60,19 @@ declare module '@generated/i18n' {
|
|
|
59
60
|
defaultLocale: string;
|
|
60
61
|
locales: [string, ...string[]];
|
|
61
62
|
currentLocale: string;
|
|
62
|
-
localeConfigs:
|
|
63
|
-
string
|
|
64
|
-
{
|
|
63
|
+
localeConfigs: {
|
|
64
|
+
[localeName: string]: {
|
|
65
65
|
label: string;
|
|
66
66
|
direction: string;
|
|
67
67
|
htmlLang: string;
|
|
68
|
-
}
|
|
69
|
-
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
70
|
};
|
|
71
71
|
export = i18n;
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
declare module '@generated/codeTranslations' {
|
|
75
|
-
const codeTranslations:
|
|
75
|
+
const codeTranslations: {[msgId: string]: string};
|
|
76
76
|
export = codeTranslations;
|
|
77
77
|
}
|
|
78
78
|
|
|
@@ -172,10 +172,9 @@ declare module '@docusaurus/Interpolate' {
|
|
|
172
172
|
? Key | ExtractInterpolatePlaceholders<Rest>
|
|
173
173
|
: never;
|
|
174
174
|
|
|
175
|
-
export type InterpolateValues<
|
|
176
|
-
Str
|
|
177
|
-
|
|
178
|
-
> = Record<ExtractInterpolatePlaceholders<Str>, Value>;
|
|
175
|
+
export type InterpolateValues<Str extends string, Value extends ReactNode> = {
|
|
176
|
+
[key in ExtractInterpolatePlaceholders<Str>]: Value;
|
|
177
|
+
};
|
|
179
178
|
|
|
180
179
|
// If all the values are plain strings, interpolate returns a simple string
|
|
181
180
|
export function interpolate<Str extends string>(
|
|
@@ -320,17 +319,18 @@ declare module '@docusaurus/renderRoutes' {
|
|
|
320
319
|
}
|
|
321
320
|
|
|
322
321
|
declare module '@docusaurus/useGlobalData' {
|
|
323
|
-
|
|
322
|
+
import type {GlobalData} from '@docusaurus/types';
|
|
323
|
+
|
|
324
|
+
export function useAllPluginInstancesData(
|
|
324
325
|
pluginName: string,
|
|
325
|
-
):
|
|
326
|
+
): GlobalData[string];
|
|
326
327
|
|
|
327
|
-
export function usePluginData
|
|
328
|
+
export function usePluginData(
|
|
328
329
|
pluginName: string,
|
|
329
330
|
pluginId?: string,
|
|
330
|
-
):
|
|
331
|
+
): GlobalData[string][string];
|
|
331
332
|
|
|
332
|
-
|
|
333
|
-
export default function useGlobalData(): Record<string, any>;
|
|
333
|
+
export default function useGlobalData(): GlobalData;
|
|
334
334
|
}
|
|
335
335
|
|
|
336
336
|
declare module '*.svg' {
|