@modern-js/types 2.56.0 → 2.56.1
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/cli/index.d.ts +37 -46
- package/package.json +3 -3
package/cli/index.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import type { Merge } from 'type-fest';
|
|
2
|
-
|
|
3
1
|
import type { Config as JestConfigTypes } from '@jest/types';
|
|
4
2
|
|
|
5
3
|
export type JestConfig = JestConfigTypes.Config;
|
|
@@ -64,54 +62,47 @@ export type RouteLegacy = {
|
|
|
64
62
|
parent?: RouteLegacy;
|
|
65
63
|
};
|
|
66
64
|
|
|
67
|
-
export
|
|
68
|
-
caseSensitive
|
|
69
|
-
path
|
|
70
|
-
id
|
|
71
|
-
loader
|
|
72
|
-
action
|
|
73
|
-
hasErrorBoundary
|
|
74
|
-
shouldRevalidate
|
|
75
|
-
handle
|
|
76
|
-
index
|
|
77
|
-
children
|
|
78
|
-
element
|
|
79
|
-
errorElement
|
|
80
|
-
}> & {
|
|
65
|
+
export interface Route {
|
|
66
|
+
caseSensitive?: boolean;
|
|
67
|
+
path?: string;
|
|
68
|
+
id?: string;
|
|
69
|
+
loader?: any;
|
|
70
|
+
action?: any;
|
|
71
|
+
hasErrorBoundary?: boolean;
|
|
72
|
+
shouldRevalidate?: any;
|
|
73
|
+
handle?: any;
|
|
74
|
+
index?: boolean;
|
|
75
|
+
children?: Route[] | undefined;
|
|
76
|
+
element?: React.ReactNode | null;
|
|
77
|
+
errorElement?: React.ReactNode | null;
|
|
81
78
|
type: string;
|
|
82
|
-
}
|
|
79
|
+
}
|
|
83
80
|
|
|
84
81
|
export type NestedRouteForCli = NestedRoute<string>;
|
|
85
82
|
|
|
86
|
-
export
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
parent?: PageRoute;
|
|
110
|
-
_component: string;
|
|
111
|
-
component: string;
|
|
112
|
-
children?: PageRoute[];
|
|
113
|
-
}
|
|
114
|
-
>;
|
|
83
|
+
export interface NestedRoute<T = string | (() => JSX.Element)> extends Route {
|
|
84
|
+
type: 'nested';
|
|
85
|
+
parentId?: string;
|
|
86
|
+
data?: string;
|
|
87
|
+
clientData?: string;
|
|
88
|
+
children?: NestedRoute<T>[];
|
|
89
|
+
filename?: string;
|
|
90
|
+
_component?: string;
|
|
91
|
+
component?: T;
|
|
92
|
+
lazyImport?: () => Promise<any>;
|
|
93
|
+
loading?: T;
|
|
94
|
+
error?: T;
|
|
95
|
+
isRoot?: boolean;
|
|
96
|
+
config?: string | Record<string, any>;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export interface PageRoute extends Route {
|
|
100
|
+
type: 'page';
|
|
101
|
+
parent?: PageRoute;
|
|
102
|
+
_component: string;
|
|
103
|
+
component: string;
|
|
104
|
+
children?: PageRoute[];
|
|
105
|
+
}
|
|
115
106
|
|
|
116
107
|
/**
|
|
117
108
|
* custom html partials.
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "2.56.
|
|
18
|
+
"version": "2.56.1",
|
|
19
19
|
"types": "./index.d.ts",
|
|
20
20
|
"exports": {
|
|
21
21
|
".": {
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"http-proxy-middleware": "^2.0.4",
|
|
46
46
|
"jest": "^29",
|
|
47
47
|
"type-fest": "2.15.0",
|
|
48
|
-
"@scripts/
|
|
49
|
-
"@scripts/
|
|
48
|
+
"@scripts/jest-config": "2.56.1",
|
|
49
|
+
"@scripts/build": "2.56.1"
|
|
50
50
|
},
|
|
51
51
|
"sideEffects": false,
|
|
52
52
|
"publishConfig": {
|