@docusaurus/module-type-aliases 0.0.0-4625 → 0.0.0-4628
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 +6 -11
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-4628",
|
|
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-4628",
|
|
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": "dbe66880af93183a5a691dd1e1397df004e0b0de"
|
|
27
27
|
}
|
package/src/index.d.ts
CHANGED
|
@@ -37,7 +37,7 @@ declare module '@generated/registry' {
|
|
|
37
37
|
declare module '@generated/routes' {
|
|
38
38
|
import type {RouteConfig} from 'react-router-config';
|
|
39
39
|
|
|
40
|
-
type Route = {
|
|
40
|
+
export type Route = {
|
|
41
41
|
readonly path: string;
|
|
42
42
|
readonly component: RouteConfig['component'];
|
|
43
43
|
readonly exact?: boolean;
|
|
@@ -143,8 +143,7 @@ declare module '@docusaurus/Head' {
|
|
|
143
143
|
|
|
144
144
|
export type Props = HelmetProps & {children: ReactNode};
|
|
145
145
|
|
|
146
|
-
|
|
147
|
-
export default Head;
|
|
146
|
+
export default function Head(props: Props): JSX.Element;
|
|
148
147
|
}
|
|
149
148
|
|
|
150
149
|
declare module '@docusaurus/Link' {
|
|
@@ -163,8 +162,7 @@ declare module '@docusaurus/Link' {
|
|
|
163
162
|
// escape hatch in case broken links check is annoying for a specific link
|
|
164
163
|
readonly 'data-noBrokenLinkCheck'?: boolean;
|
|
165
164
|
};
|
|
166
|
-
|
|
167
|
-
export default Link;
|
|
165
|
+
export default function Link(props: Props): JSX.Element;
|
|
168
166
|
}
|
|
169
167
|
|
|
170
168
|
declare module '@docusaurus/Interpolate' {
|
|
@@ -286,11 +284,10 @@ declare module '@docusaurus/ExecutionEnvironment' {
|
|
|
286
284
|
declare module '@docusaurus/ComponentCreator' {
|
|
287
285
|
import type Loadable from 'react-loadable';
|
|
288
286
|
|
|
289
|
-
function ComponentCreator(
|
|
287
|
+
export default function ComponentCreator(
|
|
290
288
|
path: string,
|
|
291
289
|
hash: string,
|
|
292
290
|
): ReturnType<typeof Loadable>;
|
|
293
|
-
export default ComponentCreator;
|
|
294
291
|
}
|
|
295
292
|
|
|
296
293
|
declare module '@docusaurus/BrowserOnly' {
|
|
@@ -298,8 +295,7 @@ declare module '@docusaurus/BrowserOnly' {
|
|
|
298
295
|
readonly children?: () => JSX.Element;
|
|
299
296
|
readonly fallback?: JSX.Element;
|
|
300
297
|
}
|
|
301
|
-
|
|
302
|
-
export default BrowserOnly;
|
|
298
|
+
export default function BrowserOnly(props: Props): JSX.Element | null;
|
|
303
299
|
}
|
|
304
300
|
|
|
305
301
|
declare module '@docusaurus/isInternalUrl' {
|
|
@@ -329,8 +325,7 @@ declare module '@docusaurus/useGlobalData' {
|
|
|
329
325
|
): T;
|
|
330
326
|
|
|
331
327
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
332
|
-
function useGlobalData(): Record<string, any>;
|
|
333
|
-
export default useGlobalData;
|
|
328
|
+
export default function useGlobalData(): Record<string, any>;
|
|
334
329
|
}
|
|
335
330
|
|
|
336
331
|
declare module '*.svg' {
|