@moneko/react 2.0.3 → 2.0.4

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/env.d.ts +8 -5
  2. package/package.json +3 -3
package/env.d.ts CHANGED
@@ -100,8 +100,8 @@ declare module '@app/info' {
100
100
  export default app;
101
101
  }
102
102
  declare module '@app/routes' {
103
- import type { NonIndexRouteObject } from 'react-router-dom';
104
- export interface RouteConfig extends Omit<NonIndexRouteObject, 'element' | 'children'> {
103
+ import type { RouteObject } from 'react-router-dom';
104
+ export interface RouteConfig extends Omit<RouteObject, 'element' | 'children'> {
105
105
  /** 菜单id */
106
106
  key?: string;
107
107
  value?: string;
@@ -130,9 +130,12 @@ declare module '@app/routes' {
130
130
  hideTabs?: boolean;
131
131
  }
132
132
  const routes: RouteConfig[];
133
- export function lazy(comp: () => Promise<{
134
- default: () => React.JSX.Element;
135
- }>): React.FunctionComponentElement<React.SuspenseProps>
133
+
134
+ export function lazy(
135
+ comp: () => Promise<{
136
+ default: () => React.JSX.Element;
137
+ }>,
138
+ ): React.FunctionComponentElement<React.SuspenseProps>;
136
139
  export default routes;
137
140
  }
138
141
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moneko/react",
3
- "version": "2.0.3",
3
+ "version": "2.0.4",
4
4
  "description": "react",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -18,8 +18,8 @@
18
18
  "@pmmmwh/react-refresh-webpack-plugin": "0.5.15",
19
19
  "react-refresh": "0.16.0",
20
20
  "react-refresh-typescript": "2.0.10",
21
- "react-router": "6.4.0",
22
- "react-router-dom": "6.4.0",
21
+ "react-router": "6.3.0",
22
+ "react-router-dom": "6.3.0",
23
23
  "shared-store-object": "1.2.1"
24
24
  },
25
25
  "devDependencies": {