@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/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
- } & Readonly<
90
- undefined extends Params
91
- ? {
92
- /**
93
- * Params for this route
94
- */
95
- params?: Readonly<Params> | undefined;
96
- }
97
- : {
98
- /**
99
- * Params for this route
100
- */
101
- params: Readonly<Params>;
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>;