aboutsummaryrefslogtreecommitdiffstats
path: root/src/Mapbox/Expression.elm
diff options
context:
space:
mode:
Diffstat (limited to 'src/Mapbox/Expression.elm')
-rw-r--r--src/Mapbox/Expression.elm10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/Mapbox/Expression.elm b/src/Mapbox/Expression.elm
index 08f9f20..109a440 100644
--- a/src/Mapbox/Expression.elm
+++ b/src/Mapbox/Expression.elm
@@ -146,6 +146,7 @@ module Mapbox.Expression
, toBool
, toColor
, toFloat
+ , toFormattedText
, toString
, true
, typeof
@@ -220,7 +221,7 @@ if the type is wrong:
You can also use these functions to explicitly cast to a particular type:
-@docs toBool, toColor, toFloat, toString
+@docs toBool, toColor, toFloat, toString, toFormattedText
@docs typeof
@@ -953,6 +954,13 @@ toString =
call1 "to-string"
+{-| Just like `toString`, but outputs a formatted string useable for displaying to users.
+-}
+toFormattedText : Expression exprType any -> Expression exprType FormattedText
+toFormattedText =
+ call1 "to-string"
+
+
{-| Returns a string describing the type of the given value.
-}
typeof : Expression exprType any -> Expression exprType String