Skip to content

PromptTransformer

@tsed/cli-prompts

Usage

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

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

Overview

ts
type PromptTransformer = (input: any, answers: Record<string, any>, flags?: {
    isFinal?: boolean;
}) => any;

Description

Transforms user input before it becomes part of the command context.

isFinal

ts
isFinal?: boolean;

Released under the MIT License.