common-types
Advanced tools
Comparing version 1.5.12 to 1.6.0
@@ -35,5 +35,11 @@ /** | ||
export declare function STAGE(stage: string): string; | ||
export interface ILambdaErrorResponse<T = any> { | ||
errorCode: string; | ||
message?: string; | ||
errors?: T[]; | ||
stackTrace?: string[]; | ||
} | ||
export declare type AWSGatewayCallback<T = IAWSGatewayResponse> = (error: any, response: T) => void; | ||
/** A Lambda function called to indicate the end-state of a lambda function */ | ||
export declare type LambdaCallback<T = IDictionary> = (error: any, response: T) => void; | ||
export declare type LambdaCallback<T = IDictionary> = (error: any, response: T | ILambdaErrorResponse) => void; | ||
export interface IAWSGatewayResponse { | ||
@@ -40,0 +46,0 @@ statusCode: number; |
{ | ||
"name": "common-types", | ||
"version": "1.5.12", | ||
"version": "1.6.0", | ||
"description": "Common types not included in Typescript", | ||
@@ -5,0 +5,0 @@ "main": "lib/common-types.js", |
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
20681
431