@docusaurus/module-type-aliases 0.0.0-4802 → 0.0.0-4806

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 +10 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docusaurus/module-type-aliases",
3
- "version": "0.0.0-4802",
3
+ "version": "0.0.0-4806",
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-4802",
15
+ "@docusaurus/types": "0.0.0-4806",
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": "127871c32ea9ba2ecbb733e01b268551f1a58aa7"
26
+ "gitHead": "1799759a71c558b3dc5d63640599046dd472e95e"
27
27
  }
package/src/index.d.ts CHANGED
@@ -27,24 +27,26 @@ declare module '@generated/site-metadata' {
27
27
  }
28
28
 
29
29
  declare module '@generated/registry' {
30
- const registry: {
31
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
32
- readonly [key: string]: [() => Promise<any>, string, string];
33
- };
30
+ import type {Registry} from '@docusaurus/types';
31
+
32
+ const registry: Registry;
34
33
  export default registry;
35
34
  }
36
35
 
37
36
  declare module '@generated/routes' {
38
- import type {Route} from '@docusaurus/types';
37
+ import type {RouteConfig as RRRouteConfig} from 'react-router-config';
39
38
 
40
- const routes: Route[];
39
+ type RouteConfig = RRRouteConfig & {
40
+ path: string;
41
+ };
42
+ const routes: RouteConfig[];
41
43
  export default routes;
42
44
  }
43
45
 
44
46
  declare module '@generated/routesChunkNames' {
45
- import type {RouteChunksTree} from '@docusaurus/types';
47
+ import type {RouteChunkNames} from '@docusaurus/types';
46
48
 
47
- const routesChunkNames: {[route: string]: RouteChunksTree};
49
+ const routesChunkNames: RouteChunkNames;
48
50
  export = routesChunkNames;
49
51
  }
50
52