File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,6 @@ import Data.Number.Format (toString) as Number
8282import Data.String as String
8383import Foreign as F
8484import Foreign.Object (Object , fromHomogeneous )
85- import Prim.TypeError (class Warn , Text )
8685import React.Basic (JSX , ReactComponent )
8786import Type.Row.Homogeneous (class Homogeneous )
8887import Unsafe.Coerce (unsafeCoerce )
@@ -199,16 +198,18 @@ merge = unsafeCoerce
199198str :: String -> StyleProperty
200199str = unsafeCoerce
201200
202- int
203- :: Warn (Text " `int` is deprecated and may be removed in future versions. Prefer `str` or one of the unit combinators like `px` or `em` instead." )
204- => Int
205- -> StyleProperty
201+ -- | Create a unitless `Int` property.
202+ -- |
203+ -- | Wherever units may be specified, use unit combinators like `px`
204+ -- | or `em` instead.
205+ int :: Int -> StyleProperty
206206int = unsafeCoerce
207207
208- num
209- :: Warn (Text " `num` is deprecated and may be removed in future versions. Prefer `str` or one of the unit combinators like `px` or `em` instead." )
210- => Number
211- -> StyleProperty
208+ -- | Create a unitless `Number` property.
209+ -- |
210+ -- | Wherever units may be specified, use unit combinators like `px`
211+ -- | or `em` instead.
212+ num :: Number -> StyleProperty
212213num = unsafeCoerce
213214
214215fallbacks :: Array StyleProperty -> StyleProperty
You can’t perform that action at this time.
0 commit comments