File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -199,16 +199,18 @@ merge = unsafeCoerce
199
199
str :: String -> StyleProperty
200
200
str = unsafeCoerce
201
201
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
202
+ -- | Create a unitless `Int` property.
203
+ -- |
204
+ -- | Wherever units may be specified, use unit combinators like `px`
205
+ -- | or `em` instead.
206
+ int :: Int -> StyleProperty
206
207
int = unsafeCoerce
207
208
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
209
+ -- | Create a unitless `Number` property.
210
+ -- |
211
+ -- | Wherever units may be specified, use unit combinators like `px`
212
+ -- | or `em` instead.
213
+ num :: Number -> StyleProperty
212
214
num = unsafeCoerce
213
215
214
216
fallbacks :: Array StyleProperty -> StyleProperty
You can’t perform that action at this time.
0 commit comments