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
82
82
import Data.String as String
83
83
import Foreign as F
84
84
import Foreign.Object (Object , fromHomogeneous )
85
- import Prim.TypeError (class Warn , Text )
86
85
import React.Basic (JSX , ReactComponent )
87
86
import Type.Row.Homogeneous (class Homogeneous )
88
87
import Unsafe.Coerce (unsafeCoerce )
@@ -199,16 +198,18 @@ merge = unsafeCoerce
199
198
str :: String -> StyleProperty
200
199
str = unsafeCoerce
201
200
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
206
206
int = unsafeCoerce
207
207
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
212
213
num = unsafeCoerce
213
214
214
215
fallbacks :: Array StyleProperty -> StyleProperty
You can’t perform that action at this time.
0 commit comments