@react-navigation/routers 8.0.0-alpha.10 → 8.0.0-alpha.11
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/lib/module/StackRouter.js +91 -23
- package/lib/module/StackRouter.js.map +1 -1
- package/lib/module/TabRouter.js +52 -11
- package/lib/module/TabRouter.js.map +1 -1
- package/lib/typescript/src/BaseRouter.d.ts +1 -1
- package/lib/typescript/src/BaseRouter.d.ts.map +1 -1
- package/lib/typescript/src/CommonActions.d.ts +1 -1
- package/lib/typescript/src/CommonActions.d.ts.map +1 -1
- package/lib/typescript/src/DrawerRouter.d.ts +2 -2
- package/lib/typescript/src/DrawerRouter.d.ts.map +1 -1
- package/lib/typescript/src/StackRouter.d.ts +2 -2
- package/lib/typescript/src/StackRouter.d.ts.map +1 -1
- package/lib/typescript/src/TabRouter.d.ts +2 -2
- package/lib/typescript/src/TabRouter.d.ts.map +1 -1
- package/lib/typescript/src/createParamsFromAction.d.ts +1 -1
- package/lib/typescript/src/createParamsFromAction.d.ts.map +1 -1
- package/lib/typescript/src/createRouteFromAction.d.ts +1 -1
- package/lib/typescript/src/createRouteFromAction.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +9 -9
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/types.d.ts +3 -3
- package/lib/typescript/src/types.d.ts.map +1 -1
- package/package.json +6 -6
- package/src/StackRouter.tsx +129 -17
- package/src/TabRouter.tsx +75 -14
- package/src/types.tsx +13 -15
package/src/types.tsx
CHANGED
|
@@ -86,21 +86,19 @@ export type Route<
|
|
|
86
86
|
* History of param changes for this route.
|
|
87
87
|
*/
|
|
88
88
|
history?: { type: 'params'; params: object }[] | undefined;
|
|
89
|
-
} &
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
}
|
|
103
|
-
>
|
|
89
|
+
} & (undefined extends Params
|
|
90
|
+
? {
|
|
91
|
+
/**
|
|
92
|
+
* Params for this route
|
|
93
|
+
*/
|
|
94
|
+
params?: Readonly<Params> | undefined;
|
|
95
|
+
}
|
|
96
|
+
: {
|
|
97
|
+
/**
|
|
98
|
+
* Params for this route
|
|
99
|
+
*/
|
|
100
|
+
params: Readonly<Params>;
|
|
101
|
+
})
|
|
104
102
|
>;
|
|
105
103
|
|
|
106
104
|
export type ParamListBase = Record<string, object | undefined>;
|