We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
TypeScript Version: 3.7.2
Search Terms: export destructuring
Code
// @target: esnext // @module: commonjs let foo = 1; export { foo }; console.log({ foo } = {foo : 1});
Expected behavior:
Logs: {foo: 1}
{foo: 1}
Actual behavior: Logs: `1
Playground Link: https://www.typescriptlang.org/play/?module=1&ssl=4&ssc=33&pln=1&pc=1#code/DYUwLgBAZg9jEF4IEYDcAoEAPADjATpAN7RwQC+G6AxjAHYDOMoAdMDAOYAUJs85iCET4QAXCnIBKIA
Related Issues: