- Fixes to
- Observable functions propagate exceptions originating in mapping/folding functions properly.
- ParamArray in a constructor by WIG translates correctly.
- WIG now correctly sets the full names of generic types so that the same type name with different number of type arguments can be used.
Possible breaking changes
EcmaScript.Array or using the
.ToEcma() extension method is recommended.
Additions to WebSharper Interface Generator
Support for indexed properties. Examples:
"item" =@ T<obj> |> Indexed T<int> // has inline "$this[$index]" "prop" =@ T<obj> |> Indexed T<int> // has inline "$this.prop[$index]"
A property named "item" is handled specially for creating the default inline, the object itself gets indexed.
Support for type constraints. Example:
Generic - fun b -> "test" => (b |> WithConstraint [ T<System.Collections.IEnumerable> ]) ^-> T<unit>
WithConstraintfunction destructively sets the constraints on the type parameter. Use it anywhere but only once inside the function passed to the Generic helper.