common-types
Advanced tools
Comparing version 1.6.0 to 1.6.1
@@ -43,3 +43,3 @@ /** | ||
/** A Lambda function called to indicate the end-state of a lambda function */ | ||
export declare type LambdaCallback<T = IDictionary> = (error: any, response: T | ILambdaErrorResponse) => void; | ||
export declare type LambdaCallback<T = IDictionary, E = ILambdaErrorResponse> = (error: any, response: T | E) => void; | ||
export interface IAWSGatewayResponse { | ||
@@ -46,0 +46,0 @@ statusCode: number; |
{ | ||
"name": "common-types", | ||
"version": "1.6.0", | ||
"version": "1.6.1", | ||
"description": "Common types not included in Typescript", | ||
@@ -5,0 +5,0 @@ "main": "lib/common-types.js", |
@@ -66,5 +66,5 @@ /** | ||
/** A Lambda function called to indicate the end-state of a lambda function */ | ||
export type LambdaCallback<T = IDictionary> = ( | ||
export type LambdaCallback<T = IDictionary, E = ILambdaErrorResponse> = ( | ||
error: any, | ||
response: T | ILambdaErrorResponse | ||
response: T | E | ||
) => void; | ||
@@ -71,0 +71,0 @@ |
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
20695