enumify-ts
Version:
A JavaScript library that helps with the enum pattern based on TypeScript. This fork of [rauschma/enumify](https://github.com/rauschma/enumify) permits to infer the correct type from constructed collections: for example, the type of `values()` will be `A
50 lines (49 loc) • 926 B
JSON
{
"name": "enumify-ts",
"version": "2.0.2",
"author": "Matteo Zanella",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/MatteoZanella/ts-enumify"
},
"keywords": [
"typescript",
"enum",
"library",
"javascript",
"generics",
"enumerator",
"node",
"js",
"ts",
"lib",
"type"
],
"main": "lib/index.js",
"types": "lib/index.d.ts",
"files": [
"/lib"
],
"scripts": {
"clean": "rm -rf lib/*",
"build": "tsc",
"watch": "tsc --watch",
"test": "mocha",
"prepublishOnly": "npm run clean && npm run build"
},
"directories": {
"lib": "./lib",
"src": "./src",
"test": "./test"
},
"devDependencies": {
"@types/chai": "^4.2.14",
"@types/mocha": "^5.2.7",
"@types/node": "^13.1.6",
"chai": "^4.2.0",
"mocha": "^8.2.1",
"ts-node": "9.1.0",
"typescript": "^4.1.2"
}
}