Closed
Description
TypeScript Version: 3.0.0-dev.20180601
Search Terms:
- Move to new file
- refactoring
Code
For a project
a.ts
export const x = 123
b.ts
import * as a from './a'
console.log(a.x)
- Run the
move to new file
refactoring onexport const x
Expected behavior:
Unclear what exact behavior should be for b.ts
. Perhaps:
import * as a from './a'
import { x } from './x'
console.log(x);
or
import * as a from './a'
import * as x from './x'
console.log(x.x);
Actual behavior:
No update to b.ts
. File is now invalid:
b.ts
import * as a from './a'
console.log(a.x)