[core] map image type to string until we have a dedicated implementation
This commit is contained in:
@@ -104,7 +104,8 @@ optional<Value> toValue(const JSValue& jsvalue) {
|
||||
|
||||
style::expression::type::Type stringToType(const std::string& type) {
|
||||
using namespace style::expression;
|
||||
if (type == "string"s || type == "number-format"s) {
|
||||
if (type == "string"s || type == "number-format"s ||
|
||||
type == "image"s) { // TODO: replace once we implement image expressions
|
||||
return type::String;
|
||||
} else if (type == "number"s) {
|
||||
return type::Number;
|
||||
|
||||
Reference in New Issue
Block a user