Skip to content

Commit 084ec4c

Browse files
chadunitalfonsogarciacaro
authored andcommitted
Removed ICSSProp to reduce casting (fix #56)
1 parent 83e73f0 commit 084ec4c

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

src/Fable.React/Fable.Helpers.React.fs

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ open Fable.Core.JsInterop
55
open Fable.Import
66

77
module Props =
8-
type ICSSProp =
9-
interface end
10-
118
type IProp =
129
interface end
1310

@@ -245,12 +242,6 @@ module Props =
245242
| Unselectable of bool
246243
interface IHTMLProp
247244

248-
let inline Style (css: ICSSProp list): HTMLAttr =
249-
!!("style", keyValueList CaseRules.LowerFirst css)
250-
251-
let inline Data(key: string, value: obj): IHTMLProp =
252-
!!("data-" + key, value)
253-
254245
type SVGAttr =
255246
| ClipPath of string
256247
| Cx of obj
@@ -717,7 +708,12 @@ module Props =
717708
| WritingMode of obj
718709
| ZIndex of obj
719710
| Zoom of obj
720-
interface ICSSProp
711+
712+
let inline Style (css: CSSProp list): HTMLAttr =
713+
!!("style", keyValueList CaseRules.LowerFirst css)
714+
715+
let inline Data(key: string, value: obj): IHTMLProp =
716+
!!("data-" + key, value)
721717

722718
open Props
723719
open Fable.Import.React

0 commit comments

Comments
 (0)