Input:
const { bar } = foo;
import { foo } from 'foo';
Current Result:
local foo;
bar = foo.bar;
local __TSTL_foo = require("foo");
foo = __TSTL_foo.foo;
Expected Result:
local __TSTL_foo = require("foo");
local foo = __TSTL_foo.foo;
bar = foo.bar;
Note that TypeScript doesn't handle it correctly as well yet (microsoft/TypeScript#16166).
Input:
Current Result:
Expected Result:
Note that TypeScript doesn't handle it correctly as well yet (microsoft/TypeScript#16166).