Extension for AutoRest (https://github.com/Azure/autorest) that generates TypeScript code. The transpiled javascript code is isomorphic. It can be run in browser and in node.js environment.
Implement serialization for union types. This should account for handling unions more generally, but only implement the minimum necessary for feature parity - i.e. polymorphic discriminated unions and special unions. Special unions are unions which contain:
A type with an @encode decorator
bytes
datetime
duration
Models that contain a property with a distinct name between the REST and Modular layers
Array, Model, and Dict types that transitively inherit or contain the above types
Implement serialization for union types. This should account for handling unions more generally, but only implement the minimum necessary for feature parity - i.e. polymorphic discriminated unions and special unions. Special unions are unions which contain:
@encode
decorator