foreignUnionType(name, x)
To construct a foreign union type, specify a name and a list of the members. Each member should be an Option of the form memberName => memberType, where memberName is a String and memberType is a ForeignType.
|
Use _ to return a single member of a foreign union.
|
|
|
The object foreignUnionType is a method function.