angular / clutz

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

Add support for aliases during destructuring in migration. #987

Closed tsjs-copybara-bot closed 4 years ago

tsjs-copybara-bot commented 4 years ago

Add support for aliases during destructuring in migration.

Now when one writes:

const {a: b} = goog.require('...');

we will translate it to

import {a as b} from '...';

Previously we dropped the 'b' which required manual edits.