clear-router 2.0.7 → 2.0.8

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.
@@ -8,7 +8,7 @@ type H3App = Omit<H3['fetch'], 'fetch'> & {
8
8
  /**
9
9
  * HTTP context passed to route handlers
10
10
  */
11
- type HttpContext = H3Event;
11
+ interface HttpContext extends H3Event {}
12
12
  /**
13
13
  * Route handler function type
14
14
  */
@@ -8,7 +8,7 @@ type H3App = Omit<H3['fetch'], 'fetch'> & {
8
8
  /**
9
9
  * HTTP context passed to route handlers
10
10
  */
11
- type HttpContext = H3Event;
11
+ interface HttpContext extends H3Event {}
12
12
  /**
13
13
  * Route handler function type
14
14
  */
@@ -9,7 +9,7 @@ type MaybePromise<T = unknown> = T | Promise<T>;
9
9
  /**
10
10
  * HTTP context passed to route handlers
11
11
  */
12
- type HttpContext = H3Event;
12
+ interface HttpContext extends H3Event {}
13
13
  /**
14
14
  * Route handler function type
15
15
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clear-router",
3
- "version": "2.0.7",
3
+ "version": "2.0.8",
4
4
  "description": "Laravel-style routing system for Express.js and H3, with CommonJS, ESM, and TypeScript support",
5
5
  "keywords": [
6
6
  "h3",