@adonisjs/http-server 8.0.0-next.15 → 8.0.0-next.16

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.
@@ -1,7 +1,6 @@
1
1
  /**
2
2
  * Types shared with the client. These should never import other types
3
3
  */
4
- import { type Prettify } from '@poppinss/utils/types';
5
4
  export type ClientRouteMatchItTokens = {
6
5
  /** Original token string */
7
6
  old: string;
@@ -81,15 +80,7 @@ export type LookupList = {
81
80
  /**
82
81
  * Utility type that constructs function arguments for route URL builders based on route parameters
83
82
  */
84
- export type RouteBuilderArguments<Identifier, Route, Options extends any = URLOptions> = Route extends LookupListRoute ? Prettify<Route['params'] extends undefined ? [identifier: Identifier, params?: undefined, options?: Options] : [undefined] extends [Route['params']] ? [
85
- identifier: Identifier,
86
- params?: Route['params'] | Route['paramsTuple'],
87
- options?: Options
88
- ] : [
89
- identifier: Identifier,
90
- params: Route['params'] | Route['paramsTuple'],
91
- options?: Options
92
- ]> : never;
83
+ export type RouteBuilderArguments<Identifier, Route, Options extends any = URLOptions> = Route extends LookupListRoute ? Route['params'] extends undefined ? [identifier: Identifier, params?: undefined, options?: Options] : [undefined] extends [Route['params']] ? [identifier: Identifier, params?: Route['params'] | Route['paramsTuple'], options?: Options] : [identifier: Identifier, params: Route['params'] | Route['paramsTuple'], options?: Options] : never;
93
84
  /**
94
85
  * The urlFor helper is used to make URLs for pre-existing known routes. You can
95
86
  * make a URL using the route name, route pattern, or the route controller
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adonisjs/http-server",
3
- "version": "8.0.0-next.15",
3
+ "version": "8.0.0-next.16",
4
4
  "description": "AdonisJS HTTP server with support packed with Routing and Cookies",
5
5
  "main": "build/index.js",
6
6
  "type": "module",