angular / clutz

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

Adjust Clutz to the newer AngularJS Promise types. #967

Closed tsjs-copybara-bot closed 4 years ago

tsjs-copybara-bot commented 4 years ago

Adjust Clutz to the newer AngularJS Promise types.

The previous type emit does not work with PromiseLike, and thus causes incorrect collapsing of mixed promise chains. This change adjusts the type that Clutz emits to precisely match .then() from DefinitelyTyped angular.d.ts.