diff options
author | Jakub Hampl <kopomir@gmail.com> | 2019-02-14 15:23:49 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-14 15:23:49 +0000 |
commit | 6bd5f8ccbd8c44c3311ef36b0e2de9ede4fa71ed (patch) | |
tree | de40a36d34cb734c2765a705506436f8b38e28a9 /src | |
parent | f0c36a3d49fad46e0fb6cafeb7a021dd5d775993 (diff) |
New Style Generator (#8)
Diffstat (limited to 'src')
-rw-r--r-- | src/Mapbox/Expression.elm | 10 |
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 |