Type Alias PromptParams<T>

PromptParams: Replace<
    Omit<PromptObject, "name" | "separator">,
    { message: NonNullable<prompts.PromptObject["message"]>; type?: T },
>

A variation of PromptObject with a few changes:

  • PromptObject.type type is optional and defaults to 'text'.
  • PromptObject.message message is required.
  • PromptObject.name name is always 'value'.
  • PromptObject.separator separator is always ','.

Type Parameters

  • T extends PromptType = PromptType