Type Alias PromptOptions<T>

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

A variation of PromptObject with a few changes:

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

Type Parameters

  • T extends PromptType = PromptType