angular / clutz

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

support getprop expressions in clutz alias map #975

Closed tsjs-copybara-bot closed 4 years ago

tsjs-copybara-bot commented 4 years ago

support getprop expressions in clutz alias map

This makes Clutz handle patterns like const mod = goog.require(...); const z = mod.SomeEnum; exports.z = z; In particular, it matches the second line (mod.SomeEnum).

I find this code pretty suspicious but it is very close to working so I think the best path is to just push it over the finish line, despite my reservations.