clear-router 2.1.9 → 2.1.10

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.
@@ -127,9 +127,9 @@ declare class Router {
127
127
  * Get all registered routes with their information
128
128
  * @returns Array of route information objects
129
129
  */
130
- static allRoutes(type?: 'path'): Record<string, Route<HttpContext, Middleware>>;
131
- static allRoutes(type?: 'method'): { [method in Uppercase<HttpMethod>]?: Array<Route<HttpContext, Middleware>> };
132
- static allRoutes(type?: 'method'): Array<Route<HttpContext, Middleware>>;
130
+ static allRoutes(): Array<Route<HttpContext, Middleware>>;
131
+ static allRoutes(type: 'path'): Record<string, Route<HttpContext, Middleware>>;
132
+ static allRoutes(type: 'method'): { [method in Uppercase<HttpMethod>]?: Array<Route<HttpContext, Middleware>> };
133
133
  /**
134
134
  * Apply all registered routes to the provided Express Router instance
135
135
  * Handles controller-method binding and middleware application
@@ -127,9 +127,9 @@ declare class Router {
127
127
  * Get all registered routes with their information
128
128
  * @returns Array of route information objects
129
129
  */
130
- static allRoutes(type?: 'path'): Record<string, Route<HttpContext, Middleware>>;
131
- static allRoutes(type?: 'method'): { [method in Uppercase<HttpMethod>]?: Array<Route<HttpContext, Middleware>> };
132
- static allRoutes(type?: 'method'): Array<Route<HttpContext, Middleware>>;
130
+ static allRoutes(): Array<Route<HttpContext, Middleware>>;
131
+ static allRoutes(type: 'path'): Record<string, Route<HttpContext, Middleware>>;
132
+ static allRoutes(type: 'method'): { [method in Uppercase<HttpMethod>]?: Array<Route<HttpContext, Middleware>> };
133
133
  /**
134
134
  * Apply all registered routes to the provided Express Router instance
135
135
  * Handles controller-method binding and middleware application
@@ -125,10 +125,10 @@ declare class Router {
125
125
  /**
126
126
  * Get all registered routes with their information
127
127
  * @returns Array of route information objects
128
- */
129
- static allRoutes(type?: 'path'): Record<string, Route<HttpContext, Middleware>>;
130
- static allRoutes(type?: 'method'): { [method in Uppercase<HttpMethod>]?: Array<Route<HttpContext, Middleware>> };
131
- static allRoutes(type?: 'method'): Array<Route<HttpContext, Middleware>>;
128
+ */
129
+ static allRoutes(): Array<Route<HttpContext, Middleware>>;
130
+ static allRoutes(type: 'path'): Record<string, Route<HttpContext, Middleware>>;
131
+ static allRoutes(type: 'method'): { [method in Uppercase<HttpMethod>]?: Array<Route<HttpContext, Middleware>> };
132
132
  /**
133
133
  * Apply all registered routes to the provided H3 Router instance
134
134
  * Handles controller-method binding and middleware application
@@ -125,10 +125,10 @@ declare class Router {
125
125
  /**
126
126
  * Get all registered routes with their information
127
127
  * @returns Array of route information objects
128
- */
129
- static allRoutes(type?: 'path'): Record<string, Route<HttpContext, Middleware>>;
130
- static allRoutes(type?: 'method'): { [method in Uppercase<HttpMethod>]?: Array<Route<HttpContext, Middleware>> };
131
- static allRoutes(type?: 'method'): Array<Route<HttpContext, Middleware>>;
128
+ */
129
+ static allRoutes(): Array<Route<HttpContext, Middleware>>;
130
+ static allRoutes(type: 'path'): Record<string, Route<HttpContext, Middleware>>;
131
+ static allRoutes(type: 'method'): { [method in Uppercase<HttpMethod>]?: Array<Route<HttpContext, Middleware>> };
132
132
  /**
133
133
  * Apply all registered routes to the provided H3 Router instance
134
134
  * Handles controller-method binding and middleware application
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clear-router",
3
- "version": "2.1.9",
3
+ "version": "2.1.10",
4
4
  "description": "Laravel-style routing system for Express.js and H3, with CommonJS, ESM, and TypeScript support",
5
5
  "keywords": [
6
6
  "h3",