diff --git a/src/styleRe.re b/src/styleRe.re index 1bd44d83ab0437..42b86cd1270299 100644 --- a/src/styleRe.re +++ b/src/styleRe.re @@ -1,5 +1,7 @@ type t; +external flatten : array t => t = "%identity"; + external to_style : Js.Dict.t Js.Json.t => t = "%identity"; external style_to_dict : t => Js.Dict.t Js.Json.t = "%identity"; diff --git a/src/styleRe.rei b/src/styleRe.rei index 3a1b839fa2925f..6642a4c2c01e16 100644 --- a/src/styleRe.rei +++ b/src/styleRe.rei @@ -1,5 +1,14 @@ type t; +/** Generates a style out of an array of styles. + * This is equivalent: + * // js + * + * // reason + * +*/ +let flatten: array t => t; + type style; let style: list style => t; @@ -9,8 +18,6 @@ let combine: t => t => t; let concat: list t => t; -/** Equivalent to [style_a, style_b] in js */ - /** * Layout Props */