PromptRunner
@tsed/cli-prompts
Usage
typescript
import { PromptRunner } from "@tsed/cli-prompts";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>;