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
let value = await clack.multiselect({
message: g("Choose the features you want to include in your project"),
options: [
{ label: "React", value: "react" },
{ label: "Preact (compat)", value: "preact" },
{ label: "Twind CSS", value: "twind" },
{ label: "Tailwind CSS", value: "tailwind" },
{ label: "API Server", value: "api" },
{ label: "Serve Static Files", value: "static" },
{ label: "Million.js", value: "million" },
],
validate(values){
if(values.include("million") && !values("react")) return `You need react feature in order to chooes millionjs`;
}
});
The validate function isn't ran. This seems to be only there at the text() component. I really need validate option. I currently have to accept the input as-is, and then use a recursive function and conditional logic to do checking.
The text was updated successfully, but these errors were encountered:
The validate function isn't ran. This seems to be only there at the text() component. I really need validate option. I currently have to accept the input as-is, and then use a recursive function and conditional logic to do checking.
The text was updated successfully, but these errors were encountered: