clutz
clutz copied to clipboard
Can't use type previously imported type from TS in newly converted TS file
Repro:
- Have file a.js, b.js. b imports a
- Convert a into TS. The import in b will be changed to something like
const aModule = goog.require('...'); const {a} = aModule; - Convert b into TS.
Expected: The import of a will be changed to import {a} from '...';
Actual: The import of a will be changed to something like import * as aModule from '...'; const {a} = aModule;. When you try using a in type position, TS compiler complains that it can't find the name.