@prismatic-io/spectral
Advanced tools
Comparing version 2.0.0-beta.6 to 2.0.0-beta.7
@@ -7,3 +7,3 @@ import { InputFieldDefinition, Inputs, InputFieldTypeMap } from "."; | ||
export declare type ExtractValue<TValue extends InputFieldDefinition> = MapCollectionValues<InputFieldTypeMap[TValue["type"]], TValue["collection"]>; | ||
export declare type MapCollectionValues<TValue, TCollection extends InputFieldDefinition["collection"] | undefined> = TCollection extends "keyvaluelist" ? KeyValuePair<TValue>[] : TCollection extends "valuelist" ? TValue[] : TValue; | ||
export declare type MapCollectionValues<TValue, TCollection extends InputFieldDefinition["collection"] | undefined> = TCollection extends "keyvaluelist" ? KeyValuePair<TValue>[] | undefined : TCollection extends "valuelist" ? TValue[] | undefined : TValue; | ||
/** KeyValuePair input parameter type */ | ||
@@ -10,0 +10,0 @@ export interface KeyValuePair<V = unknown> { |
{ | ||
"name": "@prismatic-io/spectral", | ||
"version": "2.0.0-beta.6", | ||
"version": "2.0.0-beta.7", | ||
"description": "Utility library for building Prismatic components", | ||
@@ -22,3 +22,2 @@ "keywords": [ | ||
"build": "yarn run format && yarn run lint && yarn run clean && tsc", | ||
"build-production": "yarn run build --sourceMap false", | ||
"prepack": "yarn run build", | ||
@@ -36,14 +35,11 @@ "format": "yarn run lint-fix && prettier --loglevel error --write src/", | ||
"date-fns": "2.17.0", | ||
"valid-url": "1.0.9", | ||
"jest-mock": "26.6.2" | ||
"jest-mock": "26.6.2", | ||
"valid-url": "1.0.9" | ||
}, | ||
"devDependencies": { | ||
"@types/jest": "26.0.23", | ||
"@types/node": "14.14.35", | ||
"@types/valid-url": "1.0.3", | ||
"typedoc": "0.17.7", | ||
"typedoc-plugin-markdown": "2.3.1", | ||
"@types/node": "14.14.35", | ||
"@types/jest": "25.2.3", | ||
"@typescript-eslint/eslint-plugin": "2.34.0", | ||
"@typescript-eslint/parser": "2.34.0", | ||
"fast-check": "2.4.0", | ||
"eslint": "6.8.0", | ||
@@ -53,6 +49,9 @@ "eslint-config-prettier": "6.11.0", | ||
"eslint-plugin-prettier": "3.1.3", | ||
"ts-jest": "26.4.0", | ||
"typescript": "3.9.9", | ||
"fast-check": "2.4.0", | ||
"jest": "27.0.4", | ||
"prettier": "2.0.5", | ||
"jest": "26.6.3" | ||
"ts-jest": "27.0.2", | ||
"typedoc": "0.20.36", | ||
"typedoc-plugin-markdown": "2.3.1", | ||
"typescript": "3.9.9" | ||
}, | ||
@@ -59,0 +58,0 @@ "eslintConfig": { |
@@ -48,4 +48,8 @@ # @prismatic-io/spectral | ||
## Building Spectral Locally | ||
To build spectral locally, you'll need `yarn` and `node` installed. Run `yarn build` to build the package, or `yarn pack` to build a tarball that can be used in custom components for testing changes to spectral. | ||
## License | ||
This repository is [MIT licensed](./LICENSE). |
59353
55