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.5.11 to 1.5.12

5

package.json
{
"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>",

12

src/common-types.ts

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

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