common-types
Advanced tools
Comparing version 1.5.11 to 1.5.12
{ | ||
"name": "common-types", | ||
"version": "1.5.11", | ||
"version": "1.5.12", | ||
"description": "Common types not included in Typescript", | ||
@@ -9,4 +9,3 @@ "main": "lib/common-types.js", | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"build": "tsc", | ||
"publish": "npm run build && npm publish" | ||
"build": "tsc" | ||
}, | ||
@@ -13,0 +12,0 @@ "author": "Ken Snyder <ken@ken.net>", |
@@ -57,5 +57,15 @@ /** | ||
export interface ILambdaErrorResponse<T = any> { | ||
errorCode: string; | ||
message?: string; | ||
errors?: T[]; | ||
stackTrace?: string[]; | ||
} | ||
export type AWSGatewayCallback<T = IAWSGatewayResponse> = (error: any, response: T) => void; | ||
/** A Lambda function called to indicate the end-state of a lambda function */ | ||
export type LambdaCallback<T = IDictionary> = (error: any, response: T) => void; | ||
export type LambdaCallback<T = IDictionary> = ( | ||
error: any, | ||
response: T | ILambdaErrorResponse | ||
) => void; | ||
@@ -62,0 +72,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
20518
425