listr2
Advanced tools
Comparing version 1.2.19 to 1.2.20
@@ -7,3 +7,3 @@ /// <reference types="node" /> | ||
message: string | (() => string) | (() => Promise<string>); | ||
initial?: any; | ||
initial?: boolean | number | string | (() => string) | (() => Promise<string>); | ||
required?: boolean; | ||
@@ -19,11 +19,4 @@ skip?: ((state: object) => boolean | Promise<boolean>) | boolean; | ||
} | ||
interface Choice { | ||
name?: string; | ||
message?: string; | ||
value?: string; | ||
hint?: string; | ||
disabled?: boolean | string; | ||
} | ||
interface ArrayPromptOptions extends BasePromptOptions { | ||
choices: string[] | Choice[]; | ||
choices: string[] | BasePromptOptions[]; | ||
maxChoices?: number; | ||
@@ -41,3 +34,3 @@ muliple?: boolean; | ||
interface BooleanPromptOptions extends BasePromptOptions { | ||
initial?: boolean; | ||
initial?: boolean | (() => string) | (() => Promise<string>); | ||
} | ||
@@ -44,0 +37,0 @@ interface StringPromptOptions extends BasePromptOptions { |
{ | ||
"name": "listr2", | ||
"version": "1.2.19", | ||
"version": "1.2.20", | ||
"description": "Terminal task list reborn!", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
76820
1128