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.
package/dist/express/index.d.cts
CHANGED
|
@@ -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(
|
|
131
|
-
static allRoutes(type
|
|
132
|
-
static allRoutes(type
|
|
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
|
package/dist/express/index.d.mts
CHANGED
|
@@ -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(
|
|
131
|
-
static allRoutes(type
|
|
132
|
-
static allRoutes(type
|
|
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
|
package/dist/h3/index.d.cts
CHANGED
|
@@ -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(
|
|
130
|
-
static allRoutes(type
|
|
131
|
-
static allRoutes(type
|
|
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/dist/h3/index.d.mts
CHANGED
|
@@ -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(
|
|
130
|
-
static allRoutes(type
|
|
131
|
-
static allRoutes(type
|
|
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
|