Skip to content

NormalizedPromptQuestion

@tsed/cli-prompts

Usage

typescript
import { NormalizedPromptQuestion } from "@tsed/cli-prompts/src/interfaces/NormalizedPromptQuestion";

See /packages/cli-prompts/src/interfaces/NormalizedPromptQuestion.ts.

Overview

ts
type NormalizedPromptQuestion = PromptQuestion & {
    message: string;
    choices?: NormalizedChoice[];
    source?: PromptAutocompleteQuestion["source"];
    mask?: PromptPasswordQuestion["mask"];
};

message

ts
message: string;

choices

ts
choices?: NormalizedChoice[];

source

ts
source?: PromptAutocompleteQuestion["source"];

mask

ts
mask?: PromptPasswordQuestion["mask"];

Released under the MIT License.