@middy/core
Advanced tools
Comparing version 1.0.0-alpha.62 to 1.0.0-alpha.63
@@ -7,10 +7,10 @@ import { | ||
declare type EventType<T> = | ||
T extends (event: infer EventArgType, context: Context, callback: Callback<any>) => void ? EventArgType : | ||
T extends (event: infer EventArgType, context: Context) => Promise<any> ? EventArgType : | ||
declare type EventType<T, C> = | ||
T extends (event: infer EventArgType, context: C, callback: Callback<any>) => void ? EventArgType : | ||
T extends (event: infer EventArgType, context: C) => Promise<any> ? EventArgType : | ||
never; | ||
declare type HandlerReturnType<T> = | ||
T extends (event: any, context: Context) => Promise<infer RetType> ? RetType : | ||
T extends (event: any, context: Context, callback: Callback<infer RetType>) => void ? RetType : | ||
declare type HandlerReturnType<T, C> = | ||
T extends (event: any, context: C) => Promise<infer RetType> ? RetType : | ||
T extends (event: any, context: C, callback: Callback<infer RetType>) => void ? RetType : | ||
never; | ||
@@ -23,4 +23,4 @@ | ||
declare const middy: <H extends AsyncHandler<C>, C extends Context = Context>(handler: H) => middy.Middy< | ||
EventType<H>, | ||
HandlerReturnType<H>, | ||
EventType<H, C>, | ||
HandlerReturnType<H, C>, | ||
C | ||
@@ -27,0 +27,0 @@ > |
{ | ||
"name": "@middy/core", | ||
"version": "1.0.0-alpha.62", | ||
"version": "1.0.0-alpha.63", | ||
"description": "🛵 The stylish Node.js middleware engine for AWS Lambda (core package)", | ||
@@ -48,3 +48,3 @@ "engines": { | ||
}, | ||
"gitHead": "10651ba4e4788f9314599db21dfffc75abf87f38" | ||
"gitHead": "01e7ca27ac792b26aa59ee65e67448f3df4048f9" | ||
} |
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
36594