Skip to content

Commit 62c0c88

Browse files
Make Custom another DU case instead of static member (see #89)
1 parent 4f9d7a1 commit 62c0c88

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

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

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -157,12 +157,8 @@ module rec Props =
157157
| Y1 of obj
158158
| Y2 of obj
159159
| Y of obj
160-
#if !FABLE_COMPILER
161-
| Custom of string * obj
162-
#else
163160
/// If you are searching for a way to provide a value not supported by this DSL then use something like: CSSProp.Custom ("align-content", "center")
164-
static member inline Custom (key: string, value: obj) : SVGAttr = !!(key, value)
165-
#endif
161+
| [<Erase>] Custom of string * obj
166162
interface IProp
167163

168164
type HTMLAttr =
@@ -311,12 +307,10 @@ module rec Props =
311307
| Results of float
312308
| Security of string
313309
| Unselectable of bool
310+
| [<Erase>] Custom of string * obj
314311
#if !FABLE_COMPILER
315-
| Custom of string * obj
316312
| Style of CSSProp list
317313
| Data of string * obj
318-
#else
319-
static member inline Custom (key: string, value: obj) : HTMLAttr = !!(key, value)
320314
#endif
321315
interface IHTMLProp
322316

@@ -726,12 +720,8 @@ module rec Props =
726720
| WritingMode of obj
727721
| ZIndex of obj
728722
| Zoom of obj
729-
#if !FABLE_COMPILER
730-
| Custom of string * obj
731-
#else
732723
/// If you are searching for a way to provide a value not supported by this DSL then use something like: CSSProp.Custom ("align-content", "center")
733-
static member inline Custom (key: string, value: obj) : CSSProp = !!(key, value)
734-
#endif
724+
| [<Erase>] Custom of string * obj
735725

736726
#if FABLE_COMPILER
737727
let inline Style (css: CSSProp seq): HTMLAttr =

0 commit comments

Comments
 (0)