@verdaccio/types
Advanced tools
Comparing version 0.0.5-beta to 0.0.5
{ | ||
"name": "@verdaccio/types", | ||
"version": "0.0.5-beta", | ||
"version": "0.0.5", | ||
"description": "verdaccio flow types definitions", | ||
"main": "lib/index.js", | ||
"scripts": { | ||
"prepublish": "mkdir -p lib && for f in $(find src/ -iname *.js | cut -c5-) ; do cp src/$f lib/$f.flow; done", | ||
"prepublish": "npm run build", | ||
"build": "mkdir -p lib && for f in $(find src/ -iname *.js | cut -c5-) ; do cp src/$f lib/$f.flow; done", | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"keywords": [], | ||
"author": "", | ||
"license": "ISC", | ||
"author": "Juan Picado <juanpicado19@gmail.com>", | ||
"private": false, | ||
"license": "MIT", | ||
"devDependencies": { | ||
@@ -14,0 +16,0 @@ "flow-bin": "^0.52.0" |
@@ -1,3 +0,38 @@ | ||
# flow-types for verdaccio | ||
# Flow types for verdaccio | ||
Flow definitions for verdaccio plugins and internal code | ||
Flow definitions for verdaccio plugins and internal code. | ||
## Usage | ||
To set up the types we need to add them to the `.flowconfig` flow configuration file. | ||
``` | ||
[libs] | ||
node_modules/@verdaccio/types/lib/ | ||
[options] | ||
suppress_comment= \\(.\\|\n\\)*\\$FlowFixMe | ||
unsafe.enable_getters_and_setters=true | ||
[version] | ||
^0.52.0 | ||
``` | ||
### Imports | ||
``` | ||
import type {ILocalData, LocalStorage, Logger, Config} from '@verdaccio/types'; | ||
class LocalData implements ILocalData { | ||
path: string; | ||
logger: Logger; | ||
data: LocalStorage; | ||
config: Config; | ||
locked: boolean; | ||
... | ||
} | ||
``` | ||
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
8293
0
1
39