|
11 | 11 | * Types shared with the client. These should never import other types |
12 | 12 | */ |
13 | 13 |
|
14 | | -import { type Prettify } from '@poppinss/utils/types' |
15 | | - |
16 | 14 | export type ClientRouteMatchItTokens = { |
17 | 15 | /** Original token string */ |
18 | 16 | old: string |
@@ -107,21 +105,11 @@ export type RouteBuilderArguments< |
107 | 105 | Route, |
108 | 106 | Options extends any = URLOptions, |
109 | 107 | > = Route extends LookupListRoute |
110 | | - ? Prettify< |
111 | | - Route['params'] extends undefined |
112 | | - ? [identifier: Identifier, params?: undefined, options?: Options] |
113 | | - : [undefined] extends [Route['params']] |
114 | | - ? [ |
115 | | - identifier: Identifier, |
116 | | - params?: Route['params'] | Route['paramsTuple'], |
117 | | - options?: Options, |
118 | | - ] |
119 | | - : [ |
120 | | - identifier: Identifier, |
121 | | - params: Route['params'] | Route['paramsTuple'], |
122 | | - options?: Options, |
123 | | - ] |
124 | | - > |
| 108 | + ? Route['params'] extends undefined |
| 109 | + ? [identifier: Identifier, params?: undefined, options?: Options] |
| 110 | + : [undefined] extends [Route['params']] |
| 111 | + ? [identifier: Identifier, params?: Route['params'] | Route['paramsTuple'], options?: Options] |
| 112 | + : [identifier: Identifier, params: Route['params'] | Route['paramsTuple'], options?: Options] |
125 | 113 | : never |
126 | 114 |
|
127 | 115 | /** |
|
0 commit comments