common-types
Advanced tools
Comparing version 1.3.6 to 1.3.7
@@ -46,3 +46,3 @@ /** | ||
} | ||
export declare type LambdaCallback = (error: any, response: IAWSGatewayResponse) => void; | ||
export declare type AWSGatewayCallback<T = IAWSGatewayResponse> = (error: any, response: T) => void; | ||
export interface IAWSGatewayResponse { | ||
@@ -49,0 +49,0 @@ statusCode: number; |
{ | ||
"name": "common-types", | ||
"version": "1.3.6", | ||
"version": "1.3.7", | ||
"description": "Common types not included in Typescript", | ||
@@ -5,0 +5,0 @@ "main": "lib/common-types.js", |
@@ -8,3 +8,2 @@ import chalk = require("chalk"); | ||
} | ||
/** | ||
@@ -55,5 +54,5 @@ * A numeric Javascript array | ||
export type LambdaCallback = ( | ||
export type AWSGatewayCallback<T = IAWSGatewayResponse> = ( | ||
error: any, | ||
response: IAWSGatewayResponse | ||
response: T | ||
) => void; | ||
@@ -60,0 +59,0 @@ export interface IAWSGatewayResponse { |
Sorry, the diff of this file is not supported yet
17684