hybrid-navigation 5.1.1 → 5.3.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/README.md +9 -20
- package/android/src/main/java/com/navigation/androidx/AwesomeFragment.java +5 -13
- package/android/src/main/java/com/navigation/androidx/DefaultTabBarProvider.java +2 -2
- package/android/src/main/java/com/navigation/androidx/TabBarFragment.java +0 -50
- package/android/src/main/java/com/navigation/androidx/TabBarItem.java +0 -4
- package/android/src/main/java/com/reactnative/hybridnavigation/GlobalStyle.java +0 -7
- package/android/src/main/java/com/reactnative/hybridnavigation/HybridFragment.java +7 -43
- package/android/src/main/java/com/reactnative/hybridnavigation/NativeNavigation.java +5 -39
- package/android/src/main/java/com/reactnative/hybridnavigation/ReactFragment.java +62 -135
- package/android/src/main/java/com/reactnative/hybridnavigation/ReactManager.java +0 -20
- package/android/src/main/java/com/reactnative/hybridnavigation/ReactTabBarFragment.java +10 -21
- package/android/src/main/java/com/reactnative/hybridnavigation/navigator/ScreenNavigator.java +39 -87
- package/android/src/main/java/com/reactnative/hybridnavigation/navigator/TabNavigator.java +2 -16
- package/dist/NativeEvent.d.ts +1 -11
- package/dist/NativeNavigation.d.ts +7 -6
- package/dist/Navigation.d.ts +8 -20
- package/dist/Navigation.js +32 -163
- package/dist/NavigationComponentWrap.d.ts +3 -3
- package/dist/Navigator.d.ts +4 -5
- package/dist/Navigator.js +13 -36
- package/dist/Options.d.ts +2 -2
- package/dist/Route.d.ts +12 -33
- package/dist/handler/DispatchCommandHandler.d.ts +3 -17
- package/dist/handler/DispatchCommandHandler.js +17 -62
- package/dist/handler/LayoutCommandHandler.d.ts +2 -3
- package/dist/handler/LayoutCommandHandler.js +0 -3
- package/dist/handler/LeaveGuardHandler.d.ts +2 -2
- package/dist/handler/LeaveGuardHandler.js +88 -46
- package/dist/handler/LifecycleEventHandler.d.ts +2 -14
- package/dist/handler/LifecycleEventHandler.js +2 -79
- package/dist/handler/ResultEventHandler.d.ts +0 -1
- package/dist/handler/ResultEventHandler.js +0 -3
- package/dist/handler/SceneExitHandler.d.ts +3 -0
- package/dist/handler/SceneExitHandler.js +76 -0
- package/dist/hooks.d.ts +2 -2
- package/dist/hooks.js +39 -22
- package/dist/index.d.ts +1 -12
- package/dist/index.js +0 -3
- package/dist/router/index.d.ts +0 -1
- package/dist/router/index.js +43 -11
- package/dist/sceneCoverage.d.ts +2 -0
- package/dist/sceneCoverage.js +25 -0
- package/dist/store.d.ts +0 -2
- package/dist/store.js +0 -4
- package/ios/HBDGlobalStyle.h +0 -1
- package/ios/HBDGlobalStyle.mm +0 -7
- package/ios/HybridNavigation.h +0 -1
- package/ios/Navigator/HBDScreenNavigator.mm +89 -237
- package/ios/Navigator/HBDStackNavigator.mm +1 -1
- package/ios/Navigator/HBDTabNavigator.mm +15 -30
- package/ios/React/HBDNativeNavigation.mm +4 -31
- package/ios/React/HBDReactBridgeManager.h +0 -5
- package/ios/React/HBDReactBridgeManager.mm +0 -17
- package/ios/ViewController/HBDReactViewController.h +1 -1
- package/ios/ViewController/HBDReactViewController.mm +34 -9
- package/ios/ViewController/HBDTabBarController.h +2 -11
- package/ios/ViewController/HBDTabBarController.mm +14 -170
- package/ios/ViewController/HBDViewController.h +0 -1
- package/ios/ViewController/HBDViewController.mm +9 -57
- package/ios/ViewController/UIViewController+HBD.h +2 -0
- package/ios/ViewController/UIViewController+HBD.mm +5 -0
- package/package.json +1 -3
- package/src/NativeEvent.ts +1 -12
- package/src/NativeNavigation.ts +8 -7
- package/src/Navigation.ts +49 -257
- package/src/NavigationComponentWrap.tsx +3 -11
- package/src/Navigator.ts +15 -45
- package/src/Options.ts +2 -3
- package/src/Route.ts +17 -54
- package/src/handler/DispatchCommandHandler.ts +29 -109
- package/src/handler/LayoutCommandHandler.ts +2 -6
- package/src/handler/LeaveGuardHandler.ts +97 -46
- package/src/handler/LifecycleEventHandler.ts +22 -122
- package/src/handler/ResultEventHandler.ts +0 -6
- package/src/handler/SceneExitHandler.ts +86 -0
- package/src/hooks.ts +39 -22
- package/src/index.ts +0 -14
- package/src/router/index.ts +45 -12
- package/src/sceneCoverage.ts +30 -0
- package/src/store.ts +0 -5
- package/dist/defineRoutes.d.ts +0 -19
- package/dist/defineRoutes.js +0 -6
- package/dist/handler/PresentationCoordinator.d.ts +0 -24
- package/dist/handler/PresentationCoordinator.js +0 -456
- package/dist/handler/TabEventHandler.d.ts +0 -8
- package/dist/handler/TabEventHandler.js +0 -25
- package/dist/reveal.d.ts +0 -46
- package/dist/reveal.js +0 -431
- package/dist/routeGraph.d.ts +0 -12
- package/dist/routeGraph.js +0 -68
- package/dist/testing.d.ts +0 -79
- package/dist/testing.js +0 -251
- package/ios/ViewController/HBDTabBarRenderer.h +0 -28
- package/src/defineRoutes.ts +0 -46
- package/src/handler/PresentationCoordinator.ts +0 -566
- package/src/handler/TabEventHandler.ts +0 -31
- package/src/reveal.ts +0 -565
- package/src/routeGraph.ts +0 -87
- package/src/testing.ts +0 -395
- package/testing.d.ts +0 -1
- package/testing.js +0 -3
package/dist/testing.js
DELETED
|
@@ -1,251 +0,0 @@
|
|
|
1
|
-
import { useContext } from 'react';
|
|
2
|
-
import { TurboModuleRegistry } from 'react-native';
|
|
3
|
-
const DEFAULT_CONSTANTS = {
|
|
4
|
-
RESULT_OK: -1,
|
|
5
|
-
RESULT_CANCEL: 0,
|
|
6
|
-
RESULT_BLOCK: -2,
|
|
7
|
-
};
|
|
8
|
-
function createInitialState(options = {}) {
|
|
9
|
-
return {
|
|
10
|
-
dispatchCalls: [],
|
|
11
|
-
setResultCalls: [],
|
|
12
|
-
tabItemCalls: [],
|
|
13
|
-
beforeRemoveEnabled: new Set(),
|
|
14
|
-
currentRoute: null,
|
|
15
|
-
routeGraph: [],
|
|
16
|
-
rootGeneration: 0,
|
|
17
|
-
onDispatch: options.onDispatch,
|
|
18
|
-
onSetResult: options.onSetResult,
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
const nativeEventListeners = {
|
|
22
|
-
onResult: new Set(),
|
|
23
|
-
willSetRoot: new Set(),
|
|
24
|
-
didSetRoot: new Set(),
|
|
25
|
-
onSceneStateChange: new Set(),
|
|
26
|
-
onBeforeRemoveRequest: new Set(),
|
|
27
|
-
onTabPress: new Set(),
|
|
28
|
-
};
|
|
29
|
-
let activeState = createInitialState();
|
|
30
|
-
let bridgeInstalled = false;
|
|
31
|
-
function subscribe(set, listener) {
|
|
32
|
-
set.add(listener);
|
|
33
|
-
return {
|
|
34
|
-
remove: () => {
|
|
35
|
-
set.delete(listener);
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
function emit(set, payload) {
|
|
40
|
-
for (const listener of Array.from(set)) {
|
|
41
|
-
listener(payload);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
export const mockNativeEvent = {
|
|
45
|
-
onResult: listener => subscribe(nativeEventListeners.onResult, listener),
|
|
46
|
-
willSetRoot: listener => subscribe(nativeEventListeners.willSetRoot, listener),
|
|
47
|
-
didSetRoot: listener => subscribe(nativeEventListeners.didSetRoot, listener),
|
|
48
|
-
onSceneStateChange: listener => subscribe(nativeEventListeners.onSceneStateChange, listener),
|
|
49
|
-
onBeforeRemoveRequest: listener => subscribe(nativeEventListeners.onBeforeRemoveRequest, listener),
|
|
50
|
-
onTabPress: listener => subscribe(nativeEventListeners.onTabPress, listener),
|
|
51
|
-
};
|
|
52
|
-
export const mockNativeNavigation = {
|
|
53
|
-
getConstants: () => DEFAULT_CONSTANTS,
|
|
54
|
-
startRegisterReactComponent: () => { },
|
|
55
|
-
endRegisterReactComponent: () => { },
|
|
56
|
-
registerReactComponent: () => { },
|
|
57
|
-
signalFirstRenderComplete: () => { },
|
|
58
|
-
setRoot: async () => {
|
|
59
|
-
activeState.rootGeneration += 1;
|
|
60
|
-
emit(nativeEventListeners.willSetRoot, undefined);
|
|
61
|
-
emit(nativeEventListeners.didSetRoot, undefined);
|
|
62
|
-
return { ok: true, code: 'ok' };
|
|
63
|
-
},
|
|
64
|
-
setResult: (sceneId, resultCode, data = null) => {
|
|
65
|
-
const normalizedData = (data ?? null);
|
|
66
|
-
activeState.setResultCalls.push({ sceneId, resultCode, data: normalizedData });
|
|
67
|
-
activeState.onSetResult?.(sceneId, resultCode, normalizedData);
|
|
68
|
-
},
|
|
69
|
-
dispatch: async (sceneId, action, params) => {
|
|
70
|
-
const typedParams = (params ?? {});
|
|
71
|
-
activeState.dispatchCalls.push({ sceneId, action, params: typedParams });
|
|
72
|
-
if (activeState.onDispatch) {
|
|
73
|
-
return await activeState.onDispatch(sceneId, action, typedParams);
|
|
74
|
-
}
|
|
75
|
-
return { ok: true, code: 'ok' };
|
|
76
|
-
},
|
|
77
|
-
currentTab: async () => 0,
|
|
78
|
-
isStackRoot: async () => true,
|
|
79
|
-
findSceneIdByModuleName: async () => null,
|
|
80
|
-
currentRoute: async () => activeState.currentRoute,
|
|
81
|
-
routeGraph: async () => activeState.routeGraph,
|
|
82
|
-
navigationSnapshot: async () => ({
|
|
83
|
-
rootGeneration: activeState.rootGeneration,
|
|
84
|
-
currentRoute: activeState.currentRoute,
|
|
85
|
-
layers: activeState.routeGraph,
|
|
86
|
-
}),
|
|
87
|
-
setDefaultOptions: () => { },
|
|
88
|
-
updateOptions: () => { },
|
|
89
|
-
setBeforeRemoveEnabled: (sceneId, enabled) => {
|
|
90
|
-
if (enabled) {
|
|
91
|
-
activeState.beforeRemoveEnabled.add(sceneId);
|
|
92
|
-
}
|
|
93
|
-
else {
|
|
94
|
-
activeState.beforeRemoveEnabled.delete(sceneId);
|
|
95
|
-
}
|
|
96
|
-
},
|
|
97
|
-
updateTabBar: () => { },
|
|
98
|
-
setTabItem: (sceneId, items) => {
|
|
99
|
-
activeState.tabItemCalls.push({ sceneId, items: items });
|
|
100
|
-
},
|
|
101
|
-
};
|
|
102
|
-
function installNativeBridge() {
|
|
103
|
-
if (bridgeInstalled) {
|
|
104
|
-
return;
|
|
105
|
-
}
|
|
106
|
-
bridgeInstalled = true;
|
|
107
|
-
const registry = TurboModuleRegistry;
|
|
108
|
-
const originalGet = registry.get?.bind(TurboModuleRegistry);
|
|
109
|
-
const originalGetEnforcing = registry.getEnforcing?.bind(TurboModuleRegistry);
|
|
110
|
-
registry.get = (name) => {
|
|
111
|
-
if (name === 'HBDNativeNavigation') {
|
|
112
|
-
return mockNativeNavigation;
|
|
113
|
-
}
|
|
114
|
-
if (name === 'HBDNativeEvent') {
|
|
115
|
-
return mockNativeEvent;
|
|
116
|
-
}
|
|
117
|
-
return originalGet ? originalGet(name) : null;
|
|
118
|
-
};
|
|
119
|
-
registry.getEnforcing = (name) => {
|
|
120
|
-
if (name === 'HBDNativeNavigation') {
|
|
121
|
-
return mockNativeNavigation;
|
|
122
|
-
}
|
|
123
|
-
if (name === 'HBDNativeEvent') {
|
|
124
|
-
return mockNativeEvent;
|
|
125
|
-
}
|
|
126
|
-
if (originalGetEnforcing) {
|
|
127
|
-
return originalGetEnforcing(name);
|
|
128
|
-
}
|
|
129
|
-
throw new Error(`TurboModule '${name}' could not be found.`);
|
|
130
|
-
};
|
|
131
|
-
}
|
|
132
|
-
/**
|
|
133
|
-
* Thin test harness that mocks only the two native TurboModule boundaries
|
|
134
|
-
* (`HBDNativeNavigation` and `HBDNativeEvent`) and runs the real JS navigation layer on top.
|
|
135
|
-
*/
|
|
136
|
-
export function createMockNavigation(options = {}) {
|
|
137
|
-
installNativeBridge();
|
|
138
|
-
activeState = createInitialState(options);
|
|
139
|
-
// Require internal submodules directly instead of `./index` so Jest's
|
|
140
|
-
// `jest.mock('hybrid-navigation', () => require('hybrid-navigation/testing').createMockNavigation())`
|
|
141
|
-
// does not recursively re-enter its own factory.
|
|
142
|
-
const navMod = require('./Navigation');
|
|
143
|
-
const navigatorMod = require('./Navigator');
|
|
144
|
-
const hooksMod = require('./hooks');
|
|
145
|
-
const wrapMod = require('./NavigationComponentWrap');
|
|
146
|
-
const routerMod = require('./router');
|
|
147
|
-
const routeGraphMod = require('./routeGraph');
|
|
148
|
-
const revealMod = require('./reveal');
|
|
149
|
-
const defineRoutesMod = require('./defineRoutes');
|
|
150
|
-
const deepLinkMod = require('./DeepLink');
|
|
151
|
-
const optionsMod = require('./Options');
|
|
152
|
-
const { lifecycleHandler, } = require('./handler/LifecycleEventHandler');
|
|
153
|
-
const { dispatchHandler, } = require('./handler/DispatchCommandHandler');
|
|
154
|
-
const { tabEventHandler, } = require('./handler/TabEventHandler');
|
|
155
|
-
const { layoutHandler, } = require('./handler/LayoutCommandHandler');
|
|
156
|
-
const storeMod = require('./store');
|
|
157
|
-
const navigation = navMod.default;
|
|
158
|
-
const defaultSceneId = options.defaultSceneId ?? 'scene-1';
|
|
159
|
-
const defaultModuleName = options.defaultModuleName;
|
|
160
|
-
const getNavigator = (sceneId) => {
|
|
161
|
-
const nav = navigatorMod.Navigator.of(sceneId);
|
|
162
|
-
if (sceneId === defaultSceneId && defaultModuleName && nav.moduleName === undefined) {
|
|
163
|
-
nav.moduleName = defaultModuleName;
|
|
164
|
-
}
|
|
165
|
-
return nav;
|
|
166
|
-
};
|
|
167
|
-
const useNavigator = () => {
|
|
168
|
-
const nav = useContext(navigatorMod.NavigationContext);
|
|
169
|
-
return nav ?? getNavigator(defaultSceneId);
|
|
170
|
-
};
|
|
171
|
-
const controller = {
|
|
172
|
-
get dispatchCalls() {
|
|
173
|
-
return activeState.dispatchCalls;
|
|
174
|
-
},
|
|
175
|
-
get setResultCalls() {
|
|
176
|
-
return activeState.setResultCalls;
|
|
177
|
-
},
|
|
178
|
-
get tabItemCalls() {
|
|
179
|
-
return activeState.tabItemCalls;
|
|
180
|
-
},
|
|
181
|
-
get beforeRemoveEnabled() {
|
|
182
|
-
return activeState.beforeRemoveEnabled;
|
|
183
|
-
},
|
|
184
|
-
setCurrentRoute(route) {
|
|
185
|
-
activeState.currentRoute = route;
|
|
186
|
-
},
|
|
187
|
-
setRouteGraph(layers) {
|
|
188
|
-
activeState.routeGraph = layers;
|
|
189
|
-
},
|
|
190
|
-
setOnDispatch(fn) {
|
|
191
|
-
activeState.onDispatch = fn;
|
|
192
|
-
},
|
|
193
|
-
setOnSetResult(fn) {
|
|
194
|
-
activeState.onSetResult = fn;
|
|
195
|
-
},
|
|
196
|
-
emitSceneState(event) {
|
|
197
|
-
const prevState = event.prevState ?? navigation.getSceneState(event.sceneId);
|
|
198
|
-
emit(nativeEventListeners.onSceneStateChange, {
|
|
199
|
-
sceneId: event.sceneId,
|
|
200
|
-
state: event.state,
|
|
201
|
-
prevState,
|
|
202
|
-
moduleName: event.moduleName,
|
|
203
|
-
mode: event.mode,
|
|
204
|
-
presentingId: event.presentingId ?? undefined,
|
|
205
|
-
});
|
|
206
|
-
},
|
|
207
|
-
emitResult(event) {
|
|
208
|
-
emit(nativeEventListeners.onResult, event);
|
|
209
|
-
},
|
|
210
|
-
emitBeforeRemove(sceneId, action = 'back') {
|
|
211
|
-
emit(nativeEventListeners.onBeforeRemoveRequest, { sceneId, action });
|
|
212
|
-
},
|
|
213
|
-
emitTabPress(event) {
|
|
214
|
-
emit(nativeEventListeners.onTabPress, event);
|
|
215
|
-
},
|
|
216
|
-
emitRootReset() {
|
|
217
|
-
activeState.rootGeneration += 1;
|
|
218
|
-
emit(nativeEventListeners.willSetRoot, undefined);
|
|
219
|
-
emit(nativeEventListeners.didSetRoot, undefined);
|
|
220
|
-
},
|
|
221
|
-
getNavigator,
|
|
222
|
-
reset() {
|
|
223
|
-
activeState = createInitialState(options);
|
|
224
|
-
layoutHandler.clearListeners();
|
|
225
|
-
emit(nativeEventListeners.willSetRoot, undefined);
|
|
226
|
-
emit(nativeEventListeners.didSetRoot, undefined);
|
|
227
|
-
lifecycleHandler.resetForTesting();
|
|
228
|
-
storeMod.default.clear();
|
|
229
|
-
dispatchHandler.clearInterceptors();
|
|
230
|
-
tabEventHandler.clearListeners();
|
|
231
|
-
},
|
|
232
|
-
};
|
|
233
|
-
return {
|
|
234
|
-
__esModule: true,
|
|
235
|
-
...optionsMod,
|
|
236
|
-
...deepLinkMod,
|
|
237
|
-
...defineRoutesMod,
|
|
238
|
-
...revealMod,
|
|
239
|
-
...routeGraphMod,
|
|
240
|
-
...routerMod,
|
|
241
|
-
...wrapMod,
|
|
242
|
-
...hooksMod,
|
|
243
|
-
...navigatorMod,
|
|
244
|
-
RESULT_OK: navMod.RESULT_OK,
|
|
245
|
-
RESULT_CANCEL: navMod.RESULT_CANCEL,
|
|
246
|
-
RESULT_BLOCK: navMod.RESULT_BLOCK,
|
|
247
|
-
default: navigation,
|
|
248
|
-
useNavigator: useNavigator,
|
|
249
|
-
__mock: controller,
|
|
250
|
-
};
|
|
251
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
#import <UIKit/UIKit.h>
|
|
2
|
-
|
|
3
|
-
@class HBDTabBarController;
|
|
4
|
-
|
|
5
|
-
NS_ASSUME_NONNULL_BEGIN
|
|
6
|
-
|
|
7
|
-
@protocol HBDTabBarRenderer <NSObject>
|
|
8
|
-
|
|
9
|
-
@property(nonatomic, strong, readonly) UIView *barView;
|
|
10
|
-
@property(nonatomic, assign, readonly) CGFloat contentHeight;
|
|
11
|
-
|
|
12
|
-
- (void)attachToTabBarController:(HBDTabBarController *)tabBarController
|
|
13
|
-
onSelectTabAtIndex:(void (^)(NSUInteger index))onSelectTabAtIndex;
|
|
14
|
-
|
|
15
|
-
- (void)reloadItems:(NSArray<UITabBarItem *> *)items
|
|
16
|
-
tabKeys:(NSArray<NSString *> *)tabKeys
|
|
17
|
-
selectedIndex:(NSUInteger)selectedIndex
|
|
18
|
-
animated:(BOOL)animated;
|
|
19
|
-
|
|
20
|
-
@optional
|
|
21
|
-
- (void)updateTabBarStyle:(NSDictionary *)options;
|
|
22
|
-
- (void)layoutInContainerView:(UIView *)containerView safeAreaFrame:(CGRect)safeAreaFrame;
|
|
23
|
-
|
|
24
|
-
@end
|
|
25
|
-
|
|
26
|
-
typedef id<HBDTabBarRenderer> _Nonnull (^HBDTabBarRendererFactory)(void);
|
|
27
|
-
|
|
28
|
-
NS_ASSUME_NONNULL_END
|
package/src/defineRoutes.ts
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import type { ComponentType } from 'react';
|
|
2
|
-
import type { NavigationItem } from './Options';
|
|
3
|
-
import type { RouteMode, ScreenRoute } from './Route';
|
|
4
|
-
|
|
5
|
-
export interface RouteDefinition<
|
|
6
|
-
Name extends string = string,
|
|
7
|
-
Props extends Record<string, any> = Record<never, never>,
|
|
8
|
-
Result = unknown,
|
|
9
|
-
> {
|
|
10
|
-
readonly name: Name;
|
|
11
|
-
readonly load: () => ComponentType<any>;
|
|
12
|
-
readonly options?: NavigationItem;
|
|
13
|
-
readonly path?: string;
|
|
14
|
-
readonly dependency?: string;
|
|
15
|
-
readonly mode?: RouteMode;
|
|
16
|
-
readonly lazy?: boolean;
|
|
17
|
-
readonly __types?: ScreenRoute<Props, Result>;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export type RouteDefinitionInput<
|
|
21
|
-
Name extends string,
|
|
22
|
-
Props extends Record<string, any> = Record<never, never>,
|
|
23
|
-
Result = unknown,
|
|
24
|
-
> = Omit<RouteDefinition<Name, Props, Result>, '__types'>;
|
|
25
|
-
|
|
26
|
-
export function defineRoute<
|
|
27
|
-
const Name extends string,
|
|
28
|
-
Props extends Record<string, any> = Record<never, never>,
|
|
29
|
-
Result = unknown,
|
|
30
|
-
>(
|
|
31
|
-
definition: RouteDefinitionInput<Name, Props, Result>,
|
|
32
|
-
): RouteDefinition<Name, Props, Result> {
|
|
33
|
-
return definition;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export function defineRoutes<const T extends readonly RouteDefinition<any, any, any>[]>(
|
|
37
|
-
routes: T,
|
|
38
|
-
): T {
|
|
39
|
-
return routes;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export type RouteParamListOf<T extends readonly RouteDefinition<any, any, any>[]> = {
|
|
43
|
-
[R in T[number] as R['name']]: R extends RouteDefinition<any, infer P, infer Res>
|
|
44
|
-
? ScreenRoute<P, Res>
|
|
45
|
-
: ScreenRoute<Record<string, any>, unknown>;
|
|
46
|
-
};
|