Comparing version 2.1.0 to 2.1.1
@@ -17,3 +17,3 @@ import { Context, Middleware } from "koa"; | ||
export declare type RouteHandlerRules<ResponseBody = unknown, RequestBody extends ObjectShape | null = null, RouteParams = Record<string, string | undefined>> = { | ||
handler(context?: ExtendedContext<RequestBody, RouteParams>): Promise<RequestHandlerResult<ResponseBody>>; | ||
handler(context: ExtendedContext<RequestBody, RouteParams>): Promise<RequestHandlerResult<ResponseBody>>; | ||
middleware?: { | ||
@@ -20,0 +20,0 @@ pre?: Middleware[]; |
@@ -35,3 +35,3 @@ import { Context, Middleware } from "koa"; | ||
handler( | ||
context?: ExtendedContext<RequestBody, RouteParams> | ||
context: ExtendedContext<RequestBody, RouteParams> | ||
): Promise<RequestHandlerResult<ResponseBody>>; | ||
@@ -38,0 +38,0 @@ middleware?: { |
{ | ||
"name": "18h", | ||
"description": "A Next.js style dynamic API router for Koa-based APIs.", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"repository": { | ||
@@ -6,0 +6,0 @@ "url": "https://github.com/ridafkih/18h" |
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
Mixed license
License(Experimental) Package contains multiple licenses.
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
29321
30
1