We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f48b87c commit ee29ebcCopy full SHA for ee29ebc
src/RescriptVersions.res
@@ -38,7 +38,7 @@ let promptVersions = async () => {
38
let options = rescriptVersions->Array.map(v => {P.value: v})
39
40
let initialValue =
41
- options->Array.find(o => o.value->String.startsWith("11."))
+ options->Array.find(o => o.value->String.startsWith("11."))->Option.map(o => o.value)
42
43
let selectOptions =
44
switch initialValue {
src/bindings/ClackPrompts.res
@@ -38,7 +38,7 @@ type selectOption = {
type selectOptions = {
message: string,
options: array<selectOption>,
- initialValue?: selectOption,
+ initialValue?: string,
}
@module("@clack/prompts")
0 commit comments