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