You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add TypeScript-like union types for JS interop. Currently JS value is translated to/from WS-style union objects at WS/JS boundaries automatically by inlines generated by WIG.
New types are inside namespace WebSharper.JavaScript named Union<_,_> ... (with generics up to 7, same as Choice). These are constructed and matched specially:
Construction just keeps the same value in JS
UnionCaseTest translates to a type test
The text was updated successfully, but these errors were encountered:
New types in WebSharper.JavaScript namespace: Optional<'T> and Union<'T1,...,'Tn> (with generics up to 7)
Conversion helpers: Optional.ofOption/toOption, Union.ofChoiceN/toChoiceN. toChoiceN is testing types in order to find what Choice case it can convert to.
Add TypeScript-like union types for JS interop. Currently JS value is translated to/from WS-style union objects at WS/JS boundaries automatically by inlines generated by WIG.
New types are inside namespace
WebSharper.JavaScript
namedUnion<_,_>
... (with generics up to 7, same as Choice). These are constructed and matched specially:The text was updated successfully, but these errors were encountered: