You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Argument of type '{ type: string; name: string; message: string; choices: string[]; initial: string; }' is not assignable to parameter of type 'ArrayPromptOptions | BasePromptOptions | BooleanPromptOptions | StringPromptOptions | ... 4 more ... | (ArrayPromptOptions | ... 6 more ... | ((this: Enquirer<...>) => PromptOptions))[]'.
Object literal may only specify known properties, and 'choices' does not exist in type 'BasePromptOptions'.ts(2345)
The problem is the type property on BasePromptOptions. This breaks the union type PromptOptions so that the compiler does not see that type as the discriminant.
The following code
Gives the following compile error:
The problem is the
type
property onBasePromptOptions
. This breaks the union typePromptOptions
so that the compiler does not see thattype
as the discriminant.Versions:
enquirer: 2.3.2
typescript: 3.8.3
node: 12.12.0
yarn: 1.22.0
The text was updated successfully, but these errors were encountered: