@moneko/react 2.2.0 → 3.0.0-beta.0
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/env.d.ts +7 -19
- package/package.json +2 -2
package/env.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ declare module '*?url' {
|
|
|
19
19
|
export default string;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
declare module '
|
|
22
|
+
declare module 'scope:components' {
|
|
23
23
|
import { MDXComponents } from '@moneko/react/mdx';
|
|
24
24
|
|
|
25
25
|
const scope: MDXComponents;
|
|
@@ -41,7 +41,7 @@ declare module '*.mdx' {
|
|
|
41
41
|
export default MDXProvider;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
declare module '
|
|
44
|
+
declare module 'docs:docs' {
|
|
45
45
|
import { JSX } from 'react';
|
|
46
46
|
|
|
47
47
|
interface ApiEntry {
|
|
@@ -52,7 +52,7 @@ declare module '@app/docs' {
|
|
|
52
52
|
export default entry;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
declare module '
|
|
55
|
+
declare module 'app:routes' {
|
|
56
56
|
import type { RouteObject } from 'react-router-dom';
|
|
57
57
|
export interface RouteConfig extends Omit<RouteObject, 'element' | 'children'> {
|
|
58
58
|
/** 菜单id */
|
|
@@ -101,7 +101,7 @@ interface ExampleModuleBase {
|
|
|
101
101
|
[key: string]: unknown;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
declare module '
|
|
104
|
+
declare module 'docs:example' {
|
|
105
105
|
export interface ExampleModule extends ExampleModuleBase {
|
|
106
106
|
[key: string]: unknown;
|
|
107
107
|
}
|
|
@@ -109,7 +109,7 @@ declare module '@app/example' {
|
|
|
109
109
|
|
|
110
110
|
export default examples;
|
|
111
111
|
}
|
|
112
|
-
declare module '
|
|
112
|
+
declare module 'example:*' {
|
|
113
113
|
export interface ExampleModule extends ExampleModuleBase {
|
|
114
114
|
[key: string]: unknown;
|
|
115
115
|
}
|
|
@@ -117,7 +117,7 @@ declare module '@app/example/*' {
|
|
|
117
117
|
|
|
118
118
|
export default example;
|
|
119
119
|
}
|
|
120
|
-
declare module '
|
|
120
|
+
declare module 'docs:coverage' {
|
|
121
121
|
export type CoverageType = {
|
|
122
122
|
/** 语句(statement coverage) */
|
|
123
123
|
statements: string;
|
|
@@ -151,7 +151,7 @@ declare module '@app/coverage' {
|
|
|
151
151
|
|
|
152
152
|
export default coverage;
|
|
153
153
|
}
|
|
154
|
-
declare module '
|
|
154
|
+
declare module 'app:locales' {
|
|
155
155
|
import type { SSO } from 'shared-store-object';
|
|
156
156
|
export type LocaleConfig = {
|
|
157
157
|
/** 语言名称 (未设置时使用文件名)*/
|
|
@@ -201,18 +201,6 @@ declare module '@app/locales' {
|
|
|
201
201
|
|
|
202
202
|
export default localizable;
|
|
203
203
|
}
|
|
204
|
-
declare module '@app/fallback' {
|
|
205
|
-
const Fallback: null | (() => ReactElement);
|
|
206
|
-
|
|
207
|
-
export default Fallback;
|
|
208
|
-
}
|
|
209
|
-
declare module '@app/suspense' {
|
|
210
|
-
export default function SuspenseComp(props: {
|
|
211
|
-
comp: () => Promise<{
|
|
212
|
-
default: ComponentType;
|
|
213
|
-
}>;
|
|
214
|
-
}): React.JSX.Element;
|
|
215
|
-
}
|
|
216
204
|
|
|
217
205
|
declare let __webpack_public_path__: string | undefined;
|
|
218
206
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moneko/react",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0-beta.0",
|
|
4
4
|
"description": "react",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"react-refresh-typescript": "2.0.11",
|
|
22
22
|
"react-router": "6.3.0",
|
|
23
23
|
"react-router-dom": "6.3.0",
|
|
24
|
-
"shared-store-object": "1.4.
|
|
24
|
+
"shared-store-object": "1.4.1"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@moneko/convert": "1.0.1",
|