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

enum-for

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

enum-for - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

6

index.d.ts

@@ -1,3 +0,3 @@

export declare const getAllEnumKeys: (enumType: any) => string[];
export declare const getAllEnumValues: (enumType: any) => Array<number | string>;
export declare const getAllEnumEntries: (enumType: any) => Array<[string, number | string]>;
export declare function getAllEnumKeys<T>(enumType: T): Array<keyof T>;
export declare function getAllEnumValues<T>(enumType: T): Array<T[keyof T]>;
export declare function getAllEnumEntries<T>(enumType: T): Array<[keyof T, T[keyof T]]>;
{
"name": "enum-for",
"version": "0.0.3",
"version": "0.0.4",
"description": "An utility library to get all values/keys of a Typescript enum",

@@ -11,9 +11,9 @@ "main": "index.js",

"devDependencies": {
"@babel/core": "^7.10.2",
"@babel/preset-typescript": "^7.10.1",
"@types/node": "^14.0.9",
"babel-jest": "^26.0.1",
"jest": "^26.0.1",
"ts-node": "^8.10.2"
"@babel/core": "^7.12.10",
"@babel/preset-typescript": "^7.12.7",
"@types/node": "^14.14.16",
"babel-jest": "^26.6.3",
"jest": "^26.6.3",
"ts-node": "^9.1.1"
}
}
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