Skip to content

PromptWhen

@tsed/cli-prompts

Usage

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

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

Overview

ts
type PromptWhen = boolean | ((answers: Record<string, any>) => MaybePromise<boolean>);

Description

Determines whether a prompt should run.

Released under the MIT License.