angular / clutz

Closure to TypeScript `.d.ts` generator
MIT License
162 stars 60 forks source link

Correctly output common enum export style in clutz. #946

Closed tsjs-copybara-bot closed 4 years ago

tsjs-copybara-bot commented 5 years ago

Correctly output common enum export style in clutz.

goog.module('foo.bar');
goog.module.declareLegacyNamespace();

const Enum = {...};
exports.Enum = Enum;

I also had to handle another reexport style as this change broke it. Now that reexport produces empty enum according to https://github.com/angular/clutz/issues/862