@types/inquirer
Advanced tools
Comparing version 9.0.0 to 9.0.1
@@ -19,22 +19,22 @@ // Type definitions for inquirer 9.0 | ||
import { ThroughStream } from 'through'; | ||
import Choice from './lib/objects/choice'; | ||
import Choices from './lib/objects/choices'; | ||
import Separator from './lib/objects/separator'; | ||
import './lib/prompts/base'; | ||
import CheckboxPrompt from './lib/prompts/checkbox'; | ||
import ConfirmPrompt from './lib/prompts/confirm'; | ||
import EditorPrompt from './lib/prompts/editor'; | ||
import ExpandPrompt from './lib/prompts/expand'; | ||
import InputPrompt from './lib/prompts/input'; | ||
import ListPrompt from './lib/prompts/list'; | ||
import NumberPrompt from './lib/prompts/number'; | ||
import PasswordPrompt from './lib/prompts/password'; | ||
import RawListPrompt from './lib/prompts/rawlist'; | ||
import UI from './lib/ui/baseUI'; | ||
import './lib/ui/bottom-bar'; | ||
import './lib/ui/prompt'; | ||
import './lib/utils/events'; | ||
import './lib/utils/paginator'; | ||
import './lib/utils/readline'; | ||
import './lib/utils/screen-manager'; | ||
import Choice from './lib/objects/choice.js'; | ||
import Choices from './lib/objects/choices.js'; | ||
import Separator from './lib/objects/separator.js'; | ||
import './lib/prompts/base.js'; | ||
import CheckboxPrompt from './lib/prompts/checkbox.js'; | ||
import ConfirmPrompt from './lib/prompts/confirm.js'; | ||
import EditorPrompt from './lib/prompts/editor.js'; | ||
import ExpandPrompt from './lib/prompts/expand.js'; | ||
import InputPrompt from './lib/prompts/input.js'; | ||
import ListPrompt from './lib/prompts/list.js'; | ||
import NumberPrompt from './lib/prompts/number.js'; | ||
import PasswordPrompt from './lib/prompts/password.js'; | ||
import RawListPrompt from './lib/prompts/rawlist.js'; | ||
import UI from './lib/ui/baseUI.js'; | ||
import './lib/ui/bottom-bar.js'; | ||
import './lib/ui/prompt.js'; | ||
import './lib/utils/events.js'; | ||
import './lib/utils/paginator.js'; | ||
import './lib/utils/readline.js'; | ||
import './lib/utils/screen-manager.js'; | ||
@@ -53,5 +53,15 @@ /** | ||
/** | ||
* Represents a function for prompting questions to the user. | ||
*/ | ||
export interface PromptFunction { | ||
/** | ||
* Prompts the questions to the user. | ||
*/ | ||
<T extends Answers = Answers>(questions: QuestionCollection<T>, initialAnswers?: Partial<T>): Promise<T>; | ||
} | ||
/** | ||
* Provides prompts for answering questions. | ||
*/ | ||
interface PromptModuleBase { | ||
export interface PromptModuleBase extends PromptFunction { | ||
/** | ||
@@ -58,0 +68,0 @@ * Registers a new prompt-type. |
@@ -1,2 +0,2 @@ | ||
import { Answers, CheckboxChoiceOptions, ExpandChoiceOptions, ListChoiceOptions } from '../..'; | ||
import { Answers, CheckboxChoiceOptions, ExpandChoiceOptions, ListChoiceOptions } from '../../index.js'; | ||
@@ -3,0 +3,0 @@ /** |
@@ -1,4 +0,4 @@ | ||
import { AllChoiceMap, Answers, KeyUnion, UnionToIntersection } from '../..'; | ||
import Choice from './choice'; | ||
import Separator from './separator'; | ||
import { AllChoiceMap, Answers, KeyUnion, UnionToIntersection } from '../../index.js'; | ||
import Choice from './choice.js'; | ||
import Separator from './separator.js'; | ||
@@ -5,0 +5,0 @@ /** |
@@ -1,3 +0,3 @@ | ||
import inquirer from "../.."; | ||
import inquirer from "../../index.js"; | ||
export default inquirer.Separator; |
import { Interface as ReadLineInterface } from 'readline'; | ||
import { Observable } from 'rxjs'; | ||
import inquirer, { Answers, Question } from '../..'; | ||
import ScreenManager from '../utils/screen-manager'; | ||
import inquirer, { Answers, Question } from '../../index.js'; | ||
import ScreenManager from '../utils/screen-manager.js'; | ||
@@ -6,0 +6,0 @@ /** |
import { Interface as ReadLineInterface } from 'readline'; | ||
import inquirer, { Answers, CheckboxQuestionOptions } from '../..'; | ||
import Paginator from '../utils/paginator'; | ||
import Prompt from './base'; | ||
import inquirer, { Answers, CheckboxQuestionOptions } from '../../index.js'; | ||
import Paginator from '../utils/paginator.js'; | ||
import Prompt from './base.js'; | ||
@@ -6,0 +6,0 @@ /** |
import { Interface as ReadlineInterface } from 'readline'; | ||
import { Answers, ConfirmQuestionOptions } from '../..'; | ||
import Prompt from './base'; | ||
import { Answers, ConfirmQuestionOptions } from '../../index.js'; | ||
import Prompt from './base.js'; | ||
@@ -5,0 +5,0 @@ /** |
import { Interface as ReadlineInterface } from 'readline'; | ||
import { Subject, Subscription } from 'rxjs'; | ||
import inquirer, { Answers, EditorQuestionOptions } from '../..'; | ||
import Prompt from './base'; | ||
import inquirer, { Answers, EditorQuestionOptions } from '../../index.js'; | ||
import Prompt from './base.js'; | ||
@@ -6,0 +6,0 @@ /** |
import { Interface as ReadlineInterface } from 'readline'; | ||
import inquirer, { Answers, ExpandQuestionOptions } from '../..'; | ||
import Paginator from '../utils/paginator'; | ||
import Prompt from './base'; | ||
import inquirer, { Answers, ExpandQuestionOptions } from '../../index.js'; | ||
import Paginator from '../utils/paginator.js'; | ||
import Prompt from './base.js'; | ||
@@ -6,0 +6,0 @@ /** |
import { Interface as ReadlineInterface } from 'readline'; | ||
import inquirer, { Answers, InputQuestionOptions } from '../..'; | ||
import Prompt from './base'; | ||
import inquirer, { Answers, InputQuestionOptions } from '../../index.js'; | ||
import Prompt from './base.js'; | ||
@@ -5,0 +5,0 @@ /** |
import { Interface as ReadlineInterface } from 'readline'; | ||
import { Answers, ListQuestionOptions } from '../..'; | ||
import Paginator from '../utils/paginator'; | ||
import Prompt from './base'; | ||
import { Answers, ListQuestionOptions } from '../../index.js'; | ||
import Paginator from '../utils/paginator.js'; | ||
import Prompt from './base.js'; | ||
@@ -6,0 +6,0 @@ /** |
import { Interface as ReadlineInterface } from 'readline'; | ||
import { Answers, NumberQuestionOptions } from '../..'; | ||
import InputPrompt from './input'; | ||
import { Answers, NumberQuestionOptions } from '../../index.js'; | ||
import InputPrompt from './input.js'; | ||
@@ -5,0 +5,0 @@ /** |
import { Interface as ReadlineInterface } from 'readline'; | ||
import inquirer, { Answers, PasswordQuestionOptions } from '../..'; | ||
import Prompt from './base'; | ||
import inquirer, { Answers, PasswordQuestionOptions } from '../../index.js'; | ||
import Prompt from './base.js'; | ||
@@ -5,0 +5,0 @@ /** |
import { Interface as ReadlineInterface } from 'readline'; | ||
import inquirer, { Answers, RawListQuestionOptions } from '../..'; | ||
import Paginator from '../utils/paginator'; | ||
import Prompt from './base'; | ||
import inquirer, { Answers, RawListQuestionOptions } from '../../index.js'; | ||
import Paginator from '../utils/paginator.js'; | ||
import Prompt from './base.js'; | ||
@@ -6,0 +6,0 @@ /** |
import { Interface as ReadlineInterface } from 'readline'; | ||
import inquirer, { StreamOptions } from '../..'; | ||
import inquirer, { StreamOptions } from '../../index.js'; | ||
@@ -4,0 +4,0 @@ /** |
@@ -1,3 +0,3 @@ | ||
import inquirer from '../..'; | ||
import inquirer from '../../index.js'; | ||
export default inquirer.ui.BottomBar; |
@@ -1,3 +0,3 @@ | ||
import inquirer from '../..'; | ||
import inquirer from '../../index.js'; | ||
export default inquirer.ui.Prompt; |
@@ -1,2 +0,2 @@ | ||
import Choices from '../objects/choices'; | ||
import Choices from '../objects/choices.js'; | ||
@@ -3,0 +3,0 @@ type Direction = 'up' | 'down'; |
@@ -1,2 +0,2 @@ | ||
import ScreenManager from './screen-manager'; | ||
import ScreenManager from './screen-manager.js'; | ||
@@ -3,0 +3,0 @@ interface PaginatorOptions { |
import { Observable } from 'rxjs'; | ||
import { Answers, DistinctQuestion, KeyUnion, UnionToIntersection } from '../..'; | ||
import { Answers, DistinctQuestion, KeyUnion, UnionToIntersection } from '../../index.js'; | ||
@@ -4,0 +4,0 @@ /** |
{ | ||
"name": "@types/inquirer", | ||
"version": "9.0.0", | ||
"version": "9.0.1", | ||
"description": "TypeScript definitions for inquirer", | ||
@@ -76,5 +76,5 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/inquirer", | ||
}, | ||
"typesPublisherContentHash": "1554c3fdae36f07993959409072f67d81cc6de027eab51c469abd4000020670d", | ||
"typesPublisherContentHash": "58b990ba603ca5685e77383e44152a99dcf5c6830a886061204502a0409855c5", | ||
"typeScriptVersion": "4.2", | ||
"type": "module" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Thu, 04 Aug 2022 22:02:19 GMT | ||
* Last updated: Mon, 15 Aug 2022 18:32:41 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
74495
2435