From 084ec4c8afcb792920fb498d79bfb6c3bed28ea6 Mon Sep 17 00:00:00 2001 From: chadunit Date: Mon, 5 Feb 2018 12:20:06 -0600 Subject: [PATCH] Removed ICSSProp to reduce casting (fix #56) --- src/Fable.React/Fable.Helpers.React.fs | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/src/Fable.React/Fable.Helpers.React.fs b/src/Fable.React/Fable.Helpers.React.fs index bf046700..f680b12e 100644 --- a/src/Fable.React/Fable.Helpers.React.fs +++ b/src/Fable.React/Fable.Helpers.React.fs @@ -5,9 +5,6 @@ open Fable.Core.JsInterop open Fable.Import module Props = - type ICSSProp = - interface end - type IProp = interface end @@ -245,12 +242,6 @@ module Props = | Unselectable of bool interface IHTMLProp - let inline Style (css: ICSSProp list): HTMLAttr = - !!("style", keyValueList CaseRules.LowerFirst css) - - let inline Data(key: string, value: obj): IHTMLProp = - !!("data-" + key, value) - type SVGAttr = | ClipPath of string | Cx of obj @@ -717,7 +708,12 @@ module Props = | WritingMode of obj | ZIndex of obj | Zoom of obj - interface ICSSProp + + let inline Style (css: CSSProp list): HTMLAttr = + !!("style", keyValueList CaseRules.LowerFirst css) + + let inline Data(key: string, value: obj): IHTMLProp = + !!("data-" + key, value) open Props open Fable.Import.React