Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
ident(value: Value): Value {
if (value instanceof Text) {
const string = value.stringValue();
if (string === "true") {
return Bool.from(true);
} else if (string === "false") {
return Bool.from(false);
}
}
return value;
}
ident(value: Value): Value {
if (value instanceof Text) {
const string = value.stringValue();
if (string === "true") {
return Bool.from(true);
} else if (string === "false") {
return Bool.from(false);
}
}
return value;
}
bool(value: boolean): Value {
return Bool.from(value);
}