Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

common-types

Package Overview
Dependencies
Maintainers
1
Versions
308
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

common-types - npm Package Compare versions

Comparing version 1.6.1 to 1.6.2

4

lib/common-types.d.ts

@@ -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 {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc