Type Alias PromptOptions

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

Variation of prompts.PromptObject with a few changes:

  • name must be a string
  • message is required
  • separator is always ','