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.2.2 to 1.2.3

12

lib/common-types.d.ts

@@ -0,12 +1,24 @@

/**
* A Javascript hash which allows for any set of keys
*/
export interface IDictionary<T = any> {
[key: string]: T;
}
/**
* A numeric Javascript array
*/
export interface INumericArray<T = any> {
[key: number]: T;
}
/** A function for sorting JS arrays */
export declare type SortingFunction = (a: any, b: any) => number;
/** a string of the format: "YYYY-MM-DD" */
export declare type datestring = string;
/** a string of the format: "HH:mm:ss" */
export declare type timestring = string;
/** a string of the format: "UTC" */
export declare type timezone = string;
/** string representation of datetime in format of "2016-07-17T13:29:11.652Z" */
export declare type datetime = string;
/** unix epoch datetime format (aka, seconds since 1970) */
export declare type epoch = number;

@@ -13,0 +25,0 @@ export declare enum STAGE {

2

package.json
{
"name": "common-types",
"version": "1.2.2",
"version": "1.2.3",
"description": "Common types not included in Typescript",

@@ -5,0 +5,0 @@ "main": "lib/common-types.js",

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