Skip to content

PromptRunner

@tsed/cli-prompts

Usage

typescript
import { PromptRunner } from "@tsed/cli-prompts";

See /packages/cli-prompts/src/PromptRunner.ts.

Overview

ts
class PromptRunner {
    run(questions: PromptQuestion[] | undefined, initialAnswers?: Record<string, any>): Promise<Record<string, any>>;
    protected prompt(question: NormalizedPromptQuestion, answers: Record<string, unknown>): Promise<any>;
}

run

ts
run(questions: PromptQuestion[] | undefined, initialAnswers?: Record<string, any>): Promise<Record<string, any>>;

protected prompt

ts
protected prompt(question: NormalizedPromptQuestion, answers: Record<string, unknown>): Promise<any>;

Released under the MIT License.