@types/inquirer
Advanced tools
Comparing version 8.2.0 to 8.2.1
@@ -80,3 +80,3 @@ // Type definitions for inquirer 8.2 | ||
*/ | ||
interface ListQuestionOptionsBase<T, TChoiceMap> extends inquirer.Question<T> { | ||
interface ListQuestionOptionsBase<T extends inquirer.Answers, TChoiceMap extends inquirer.Answers> extends inquirer.Question<T> { | ||
/** | ||
@@ -601,3 +601,3 @@ * The choices of the prompt. | ||
*/ | ||
interface LoopableListQuestionOptionsBase<T, TChoiceMap> extends ListQuestionOptionsBase<T, TChoiceMap> { | ||
interface LoopableListQuestionOptionsBase<T extends Answers, TChoiceMap extends Answers> extends ListQuestionOptionsBase<T, TChoiceMap> { | ||
/** | ||
@@ -604,0 +604,0 @@ * A value indicating whether choices in a list should be looped. |
@@ -11,3 +11,3 @@ import { AllChoiceMap, Answers, KeyUnion, UnionToIntersection } from '../..'; | ||
*/ | ||
type DistinctChoice<T> = AllChoiceMap<T>[keyof AllChoiceMap<T>]; | ||
type DistinctChoice<T extends Answers> = AllChoiceMap<T>[keyof AllChoiceMap<T>]; | ||
@@ -20,3 +20,3 @@ /** | ||
*/ | ||
type RealChoice<T> = Exclude<DistinctChoice<T>, { type: Separator['type'] }>; | ||
type RealChoice<T extends Answers> = Exclude<DistinctChoice<T>, { type: Separator['type'] }>; | ||
@@ -29,3 +29,3 @@ /** | ||
*/ | ||
type ChoiceProperty<T> = KeyUnion<UnionToIntersection<RealChoice<T>>>; | ||
type ChoiceProperty<T extends Answers> = KeyUnion<UnionToIntersection<RealChoice<T>>>; | ||
@@ -32,0 +32,0 @@ /** |
{ | ||
"name": "@types/inquirer", | ||
"version": "8.2.0", | ||
"version": "8.2.1", | ||
"description": "TypeScript definitions for inquirer", | ||
@@ -76,4 +76,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/inquirer", | ||
}, | ||
"typesPublisherContentHash": "ba703d864afea732d41991e99b50fafe65d39c330ed31b52da703b8d9450a263", | ||
"typesPublisherContentHash": "c92548e26fa63530a4fc33c6f3e61d02a8904261949fa4c965fb2b5141919170", | ||
"typeScriptVersion": "4.2" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Thu, 27 Jan 2022 21:31:52 GMT | ||
* Last updated: Wed, 30 Mar 2022 07:31:44 GMT | ||
* Dependencies: [@types/rxjs](https://npmjs.com/package/@types/rxjs), [@types/through](https://npmjs.com/package/@types/through) | ||
@@ -14,0 +14,0 @@ * Global values: none |
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
72426