@tinyhttp/router
Advanced tools
Comparing version 1.0.1 to 1.0.2
# @tinyhttp/router | ||
## 1.0.2 | ||
### Patch Changes | ||
- Fix next function types | ||
## 1.0.1 | ||
@@ -4,0 +10,0 @@ |
/// <reference types="node" /> | ||
import { IncomingMessage as I, ServerResponse as R } from 'http'; | ||
export declare type NextFunction = (err?: any) => void | undefined; | ||
export declare type NextFunction = (err?: any) => void; | ||
export declare type SyncHandler<Request extends any = I, Response extends any = R> = (req: Request, res: Response, next?: NextFunction) => void; | ||
@@ -5,0 +5,0 @@ export declare type AsyncHandler<Request extends any = I, Response extends any = R> = (req: Request, res: Response, next?: NextFunction) => Promise<void>; |
{ | ||
"name": "@tinyhttp/router", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "Router for tinyhttp", |
@@ -5,3 +5,3 @@ import { METHODS, IncomingMessage as I, ServerResponse as R } from 'http' | ||
export type NextFunction = (err?: any) => void | undefined | ||
export type NextFunction = (err?: any) => void | ||
@@ -8,0 +8,0 @@ export type SyncHandler<Request extends any = I, Response extends any = R> = ( |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
51808